Skip to main content

๐Ÿ“ฆ CraftEngine

This page covers the compatibility with CraftEngine.

Actionsโ€‹

Set Blockโ€‹

Places a specific CraftEngine block at a designated location.

Syntax: craftEngineBlockAt <id> <location> [playSound]

Set Furnitureโ€‹

Places specific CraftEngine furniture at a designated location.

Syntax: craftEngineFurnitureAt <id> <location> [playSound]

ParameterSyntaxDefault ValueExplanation
idnamespace:idnoneThe unique identifier (ID) of the block or furniture to be spawned.
locationLocationnoneThe coordinates where the object will be placed
playSoundplaySound:BooleanfalseWhether to play the placement sound effect when the object is set.
Example
actions:
setCEBlock: craftEngineBlockAt default:chessboard_block 0;-60;0;world
setCEFurniture: craftEngineFurnitureAt default:table_lamp 0;-60;0;world playSound:true

Conditionsโ€‹

Check Blockโ€‹

Checks if a specific CraftEngine block exists at a designated location.

Syntax: craftEngineBlock <id> <location>

Check Furnitureโ€‹

Checks if a specific CraftEngine furniture exists at a designated location.

Syntax: craftEngineFurniture <id> <location>

ParameterSyntaxDefault ValueExplanation
idnamespace:idnoneThe unique identifier (ID) of the block or furniture to be spawned.
locationLocationnoneThe coordinates where the object will be placed
Example
conditions:
isCEBlock: craftEngineBlock default:safe_block 0;-60;0;world
isCEFurniture: craftEngineFurniture default:sleeper_sofa 0;-60;0;world

Objectivesโ€‹

Blockโ€‹

Triggers when a player interacts with CraftEngine block (Place, Break, or Interact).

Syntax:

  • craftEngineBlockPlace <id> [amount] [isCancelled] [location] [range]
  • craftEngineBlockBreak <id> [amount] [isCancelled] [location] [range]
  • craftEngineBlockInteract <id> [amount] [isCancelled] [location] [range]

Furnitureโ€‹

Triggers when a player interacts with CraftEngine furniture (Place, Break, or Interact).

Syntax:

  • craftEngineFurniturePlace <id> [amount] [isCancelled] [location] [range]
  • craftEngineFurnitureBreak <id> [amount] [isCancelled] [location] [range]
  • craftEngineFurnitureInteract <id> [amount] [isCancelled] [location] [range]
ParameterSyntaxDefault ValueExplanation
idnamespace:idnoneThe unique identifier (ID) of the block or furniture to be spawned.
amountamount:Int1The number of times the action must be performed.
locationlocation:LocationeverywhereThe specific location where the block or furniture must be located.
rangerange:Double0The maximum distance (in blocks) from the location within which the action is counted.
Example
objectives:
placeSafe: craftEngineBlockPlace default:safe_block
breakFlowerBasket: craftEngineFurnitureBreak default:flower_basket amount:4 isCancelled:true
useLamp: craftEngineBlockInteract default:table_lamp amount:3

Itemsโ€‹

CraftEngine usage is integrated to the Items system and thus used for events and conditions.

In addition, you can also add quest-item argument to tag them as "QuestItem".

Example
items:
topazAxe: craftEngine default:topaz_axe
amethystTorch: craftEngine default:amethyst_torch quest-item
conditions:
hasTopazAxe: hand topazAxe
actions:
giveAmethystTorch: give amethystTorch:3