Scripting

Input Formats

The following input formats are used in functions like addRecipe, addFuel, etc. See the javadoc entries of the functions for what format to use.

Format #1

The following inputs are allowed for this format:

  1. {item name} - Example "9"
  2. {item name}:{metadata} - Example "35:5"
  3. {item name} {quantity} - Example "9 64"
  4. {item name}:{metadata} {quantity} - Example "35:8 64"
  5. {alias} - Example "stone"
  6. {alias} {quantity} - Example "stone 64"

Format #2

The following inputs are allowed for this format:

  1. {item name} - Example "9"
  2. {item name}:{metadata} - Example "35:5"
  3. {alias} - Example "stone"
  4. :{ore dictionary class} - Example ":oreIron"

Format #3

The following inputs are allowed for this format:

  1. {item name} - Example "9"
  2. {item name}:{metadata} - Example "35:5"
  3. {alias} - Example "stone"

Custom Stuff 2 Script Objects

The following tables shows where the different script objects can be used.

Blocks

configentityhitXhitYlivingmodplayerpositionredstoneSignalsideworld
onActivatedXXXXXXXX
onAddedXXXX
onBonemealXXXXX
onBreakXXXX
onClickedXXXXX
onCollidedXXXXX
onCollidedWithLivingXXXXX
onCollidedWithPlayerXXXXX
onDestroyedByPlayerXXXXX
onFallenUponXXXXX
onNeighborChangeXXXX
onPlacedXXXX
onPlacedByXXXXX
onPlacedByPlayerXXXXX
onRedstoneSignalXXXXX
onUpdateXXXX
onWalkingXXXXX
onWalkingLivingXXXXX
onWalkingPlayerXXXXX

Items

confighitXhitYinteractPlayerisCurrentItemitemstacklivingmodplayerpositionsideslotIdtickCountworld
onBlockStartBreakXXXXXX
onCreatedXXXXX
onDroppedByPlayerXXXXX
onEatenXXXXX
onHitEntityXXXXXX
onLeftClickLivingXXXXXX
onLeftClickPlayerXXXXXX
onRightClickXXXXX
onStoppedUsingXXXXXX
onUpdateXXXXXXX
onUseXXXXXXXXX
onUseFirstXXXXXXXXX
onUseOnEntityXXXXXX
onUseOnPlayerXXXXXX
onUsingXXXXXX

Tile Entities

configitemstackmodpositionworld
onItemSmeltedXXXXX

GUIs

configmodplayerpositionworldrenderermouseXmouseYguiXguiY
onDrawXXXXXXXXXX

Functions

The javascript functions for the different objects can be found here.