From c919f8ef3d68cb6bf00a975e07785b8764c3dd4a Mon Sep 17 00:00:00 2001 From: 8Crafter <134829412+8Crafter@users.noreply.github.com> Date: Thu, 30 Oct 2025 01:41:35 -0700 Subject: [PATCH] Add `interact_button` item component and update `explorartion_map` loot table function. (#399) --- .../format/components/interact_button.json | 7 ++++++ .../functions/exploration_map.json | 25 +++++++++++++++++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 source/behavior/items/format/components/interact_button.json diff --git a/source/behavior/items/format/components/interact_button.json b/source/behavior/items/format/components/interact_button.json new file mode 100644 index 00000000..655f46f2 --- /dev/null +++ b/source/behavior/items/format/components/interact_button.json @@ -0,0 +1,7 @@ +{ + "$id": "blockception.minecraft.behavior.items.minecraft:interact_button", + "title": "Interact Button", + "description": "A boolean or string that determines if the interact button is shown in touch controls, and what text is displayed on the button. When set to 'true', the default 'Use Item' text will be used.", + "examples": [true, false, "Open Menu", "Use Item"], + "type": ["boolean", "string"] +} diff --git a/source/behavior/loot_tables/functions/exploration_map.json b/source/behavior/loot_tables/functions/exploration_map.json index 3609ce4b..56e88be8 100644 --- a/source/behavior/loot_tables/functions/exploration_map.json +++ b/source/behavior/loot_tables/functions/exploration_map.json @@ -13,8 +13,29 @@ }, "destination": { "type": "string", - "description": "The destination value defines what type of treasure map they receive.", - "enum": ["endcity", "fortress", "mineshaft", "monument", "ruins", "stronghold", "temple", "village", "mansion", "shipwreck", "buriedtreasure", "pillageroutpost"], + "description": "The destination value defines what type of treasure map they receive. (Note: The following do not work, even though the docs say they do: endcity, fortress, mineshaft, ruins, stronghold, temple, village, shipwreck, and pillageroutpost.)", + "enum": [ + "endcity", + "fortress", + "mineshaft", + "monument", + "ruins", + "stronghold", + "temple", + "village_desert", + "village_plains", + "village_savanna", + "village_snowy", + "village_taiga", + "village", + "mansion", + "shipwreck", + "buriedtreasure", + "pillageroutpost", + "jungle_temple", + "swamp_hut", + "trial_chambers" + ], "title": "Destination" } }