mojira.dev
MC-311287

Inline (SNBT) loot table functions passed to the /loot command produces void

for exemple this command
loot replace entity @s armor.feet loot {"pools":[{"rolls":1,"entries":[{"type":"minecraft:item","name":"minecraft:netherite_boots","functions":[{"function":"minecraft:set_enchantments","enchantments":{"minecraft:protection":4}}]}]}]}

or

/loot replace entity @s armor.feet loot {"pools":[{"rolls":1,"entries":[{"type":"minecraft:item","name":"minecraft:netherite_boots","functions":[{"function":"minecraft:set_components","components":{"minecraft:enchantments":{"protection":4}}}]}]}]}

and even

/loot give @s loot {"pools":[{"rolls":1,"entries":[{"type":"minecraft:item","name":"minecraft:stick","functions":[{"function":"minecraft:set_count","count":5}]}]}]}

provide plain netherite boots without any enchantments
and only one stick rather then 5 expected

this also work for most or all of the set functions from a snbt loot table

Attachments

Comments 3

Thank you for helping us improve Minecraft! We saved your files:

[media]

Format outdated.
Check 26.3 snapshot 4 changelog.

Indeed did’nt saw that the first time sorry

lexoum

(Unassigned)

Unconfirmed

26.3 Snapshot 9

Retrieved