objects
Data structures
Block
type
String
name
String
interactable
boolean
variant
int
heigth
double
width
double
length
double
x
double
y
double
z
double
Entity
type
String
entityId
String
Image
Creates a new image. The image will be requested from the URL. Cache determines whether or not the image will be reloaded when reloading scripts.
getDimensions
Returns the image's dimensions.
isLoaded
Returns true if the image is loaded.
ItemStack
type
String
name
String
displayName
String
stackSize
int
maxStackSize
int
durability
int
maxDurability
int
isBlock
boolean
meta
int
getEnchantments
Returns a list of a specific item stack's enchantments.
getTooltip
Returns a list of a specific item stack's tool tips.
Message
appendStyle
OPEN_URL
Opens a URL
OPEN_FILE
Opens a file on your computer
RUN_COMMAND
Sends text in the chat
SUGGEST_COMMAND
Puts text into your chat field
CHANGE_PAGE
Switches to a page in a book
COPY_TO_CLIPBOARD
Copies text to your clipboard
Adds different actions to messages.
TileEntity
name
String
type
String
Simulation
create
Initializes a simulation with the local player's movement inputs.
getMotion
Returns the motion vector of the simulation.
onGround
Returns true if the simulation is on the ground.
setForward
Sets the forward movement input for the simulation.
setJump
Sets the jump movement input for the simulation.
setSneak
Sets the sneak movement input for the simulation.
setStrafe
Sets the strafe movement input for the simulation.
getPosition
Returns the position of the simulation.
setYaw
Sets the rotation yaw for the simulation.
tick
Moves the simulation to the next tick.
Vec3
x
double
y
double
z
double
ceil
Ceils a Vec3.
equals
Returns true if both vectors are equal.
floor
Floors a Vec3.
inverse
Sets a Vec3 to its inverse.
offset
Adds a specified offset to all three axes.
translate
Adds a specified translation to all three axes.
Last updated