You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This wiki here is for scripting and can be used to easily find all methods and fields for classes.
If the script is ran from a block then you will be able to use the block's position (MutableBlockPos), and world (WorldObjectWrapper).
If the script is ran from an NPC every tick then you will be able to use the NPC's position (MutableBlockPos), world (WorldObjectWrapper), and the npc itself (NPCObjectWrapper).
If the script is ran from an NPC upon interaction you will be able to use everything from above as well as being able to use the player than interacted (PlayerObjectWrapper), and the itemstack that was used to interact (ItemStackObjectWrapper).
No matter what, you will always have access to system (GlobalScriptObject) and out (ConsoleOutput).