Skip to content

Commit

Permalink
✨ Add mcdoc:block_state_keys dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
misode committed Nov 2, 2024
1 parent 5a2fbc8 commit 872752b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/data/loot/function.mcdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 872752b

Please sign in to comment.