PlayerBedSleepingProblem

Link to playerbedsleepingproblem

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.entity.type.player.PlayerBedSleepingProblem;

PlayerBedSleepingProblem is an enum. It has 6 enum constants. They are accessible using the code below.

ZenScript
Copy
<constant:minecraft:player/bed_sleeping_problem:not_possible_here>
<constant:minecraft:player/bed_sleeping_problem:not_possible_now>
<constant:minecraft:player/bed_sleeping_problem:too_far_away>
<constant:minecraft:player/bed_sleeping_problem:obstructed>
<constant:minecraft:player/bed_sleeping_problem:other_problem>
<constant:minecraft:player/bed_sleeping_problem:not_safe>
NameTypeHas GetterHas Setter
Name
message
Type
Component?
Has Getter
true
Has Setter
false