-
-
Notifications
You must be signed in to change notification settings - Fork 35
Player Functions
The player functions are:
Example: player.openInventory()
returns an instance of the Inventory class
Example: player.getPlayer()
returns an instance of the ClientPlayerEntityHelper class
Example: player.getGameMode()
returns the player's game mode as a string.
Example: player.rayTraceBlock(distance, see_fluid)
returns an instance of the BlockDataHelper class
Example: player.rayTraceEntity()
returns an instance of the EntityHelper class
Example: world.writeSign(line1, line2, line3, line4)
returns a boolean of whether sign screen was open.
Example: player.takeScreenshot(folder, file, (chatmsg) => {chat.log(chatmsg)})
folder
is relative to the base macro directory,
it will put the screenshot inside a folder created there called screenshots
.
ie. if you have a folder name of ./test
, it will put the screenshot in ./test/screenshots
.
Takes a screenshot and callback's a TextHelper representing the chat message.