From 872752bb33e57d71c6532d22f31f0d08fd9363f6 Mon Sep 17 00:00:00 2001 From: Misode Date: Sat, 2 Nov 2024 07:22:15 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20mcdoc:block=5Fstate=5Fkeys=20?= =?UTF-8?q?dispatcher?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- java/data/loot/function.mcdoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/data/loot/function.mcdoc b/java/data/loot/function.mcdoc index 5fc5081..c3e2487 100644 --- a/java/data/loot/function.mcdoc +++ b/java/data/loot/function.mcdoc @@ -109,10 +109,12 @@ enum(string) CopyNbtStrategy { /// Copies state properties from dropped block to the item's `BlockStateTag` tag. Fails if the block doesn't match. dispatch minecraft:loot_function[copy_state] to struct CopyState { block: #[id="block"] string, - properties: [mcdoc:block_states[[block]][key]], // TODO + properties: [mcdoc:block_state_keys[[block]]], ...Conditions, } +dispatch mcdoc:block_state_keys[%unknown,%none] to string + /// Enchants the item with one randomly-selected enchantment. The level of the enchantment, if applicable, is random. dispatch minecraft:loot_function[enchant_randomly] to struct EnchantRandomly { /// If omitted, all enchantments applicable to the item are possible