mojira.dev
MC-91203

Loot table function "set_data" doestn't work with tools

With the new table loot system, it is possible to change the data value for generated items with the function "set_data" (see exemples with the sheep colored loots tables)

But if I use the "set_data" function on a tool (axe, sword, etc.) the data value is not set, so it's not possible to create tools with custom damage value.

I join an exemple file, with this generator:

  • 5 random color wools (that's work)

  • 1 sword with fix data value (don't work)

  • 1 axe with random "set_data" value (don't work)

For both tools, the damage value are set to 0 in game.

Attachments

Comments 2

Tronics

(Unassigned)

Community Consensus

Minecraft 15w43b

Minecraft 15w43c

Retrieved