c0de 0.3.0This page in English

Diese Seite ist noch nicht übersetzt. Sie wird auf Englisch angezeigt.

c0de/minecraft ​

The Minecraft library acts in the world for the owner of the trigger block, uses the struct type c0de/minecraft/POSITION (x, y, z, dimension) for places and needs INCLUDE c0de/minecraft.

Funktionen ​

  • TICKS: Returns the game time in ticks.
  • BEEP: Plays a short bell sound at the trigger block.
  • SOUND: Plays a note at the trigger block like a note block.
  • SAY: Writes a message to the chat.
  • GET_BLOCK: Reads the block at a position.
  • GET_INVENTORY: Reads the inventory of a block, such as a chest.
  • GET_LEVER: Checks if a lever is on.
  • SET_LEVER: Switches a lever on or off.
  • GET_BUTTON: Checks if a button is pressed.
  • PRESS_BUTTON: Presses a button like a player would.
  • GET_PRESSURE_PLATE: Reads the signal strength of a pressure plate.
  • GET_OPEN: Checks if a door, trapdoor or fence gate is open.
  • SET_OPEN: Opens or closes a door, trapdoor or fence gate.
  • MOVE_ITEMS: Moves items from one inventory to another.
  • DELETE_ITEMS: Removes items from an inventory.
  • PLACE_BLOCK: Places a block at a position.
  • REMOVE_BLOCK: Removes the block at a position.
  • MINE_BLOCK: Breaks a block like a player, with a tool from an inventory.
  • SPAWN_ITEM: Spawns items on the ground at a position.
  • SPAWN_ENTITY: Spawns an entity, such as a pig, at a position.
  • FIND_ENTITIES: Finds all entities near a position.
  • TELEPORT: Teleports an entity or item to a position.