Crafting Table (Entity Action Type)
Opens the Crafting Table screen for the player, as if they had right-clicked one. Nothing has to exist in the world, so this works as a portable 3×3 grid.
Type ID: apoli:crafting_table
Fields
This action has no fields.
Examples
"entity_action": {
"type": "apoli:crafting_table"
}Bound to a key, as a power that lets the player carry a workbench:
{
"type": "apoli:action_on_key_press",
"key": { "key": "key.apoli.primary_active" },
"entity_action": { "type": "apoli:crafting_table" }
}Notes
- It runs on the server only, and does nothing when the target isn't a player.
- The screen stays open until the player closes it. Walking away doesn't close it, unlike a real crafting table once you leave its range.
- Items left in the grid go back to the player's inventory when the screen closes, and drop at their feet if it is full, the same as with a real table.
apoli:modify_craftingapplies here too. Itsblock_actionruns at the block the player was standing on when the screen opened.