Craft Engine
The CraftEngine Extension integrates the core engine with the CraftEngine plugin. It allows you to use CraftEngine's custom blocks and furniture as quest objectives or event triggers.
Entry Library
Events
Triggers based on CraftEngine interactions.
- Block Break — Trigger on custom block break.
- Block Place — Trigger on custom block place.
- Block Attempt Place — Trigger when placement is attempted, including refused placement.
- Furniture Break — Trigger on furniture break.
- Furniture Place — Trigger on furniture place.
- Furniture Attempt Place — Trigger when furniture placement is attempted.
- Furniture Hit — Trigger when a player hits CraftEngine furniture.
Objectives
Quest tasks for custom assets.
- Break Block — Track broken custom blocks.
- Place Block — Track placed custom blocks.
- Break Furniture — Track broken furniture items.
- Place Furniture — Track placed furniture items.
Facts
Read the player state directly in criteria: craftengine_holding_item_fact, craftengine_item_count_fact, craftengine_cooldown_active_fact, craftengine_cooldown_remaining_fact, craftengine_item_cooldown_fact, craftengine_looking_at_block_fact, craftengine_standing_on_block_fact, craftengine_looking_at_furniture_fact.
Variables
Show CraftEngine data in any text: craftengine_item_in_hand_id_variable, craftengine_item_property_variable, craftengine_looking_at_block_id_variable, craftengine_standing_on_block_id_variable, craftengine_looking_at_furniture_id_variable, craftengine_registry_ids_variable.
Inventory
Work with CraftEngine items by ID: craftengine_give_item_action, craftengine_remove_item_action, craftengine_on_item_pickup_event, craftengine_on_item_drop_event, craftengine_on_item_consume_event.
Technical Details
This extension requires the CraftEngine plugin to provide custom blocks and furniture.
Quick Start
- 1. React to Events — Use event entries to trigger mechanics when things happen: on_craftengine_block_break_event, on_craftengine_block_place_event, on_craftengine_furniture_break_event. → on_craftengine_block_break_event → on_craftengine_block_place_event