misode / misode.github.io

Data Pack Generators and Tools for Minecraft 1.15, 1.16, 1.17, 1.18, 1.19, 1.20, 1.21
https://misode.github.io/
MIT License
491 stars 68 forks source link

Item Modifier Set Components function doesn't work for lodestone_tracker #520

Closed Pacca64 closed 1 month ago

Pacca64 commented 1 month ago

The format for the minecraft:lodestone_tracker item component is not correct in the Item Modifier Set Components function, which causes all the information put in the generator for the component to be discarded after the component is set, which makes the compass spin wildly in all circumstances, even if the user set valid a valid position and dimension.

This is what the generator currently outputs: [ { "function": "minecraft:set_components", "components": { "minecraft:lodestone_tracker": { "tracker": { "dimension": "minecraft:overworld", "pos": [ 290, 0, 290 ] }, "tracked": false } } } ]

And this is what a functional output looks like: [ { "function": "minecraft:set_components", "components": { "minecraft:lodestone_tracker": { "target": { "dimension": "minecraft:overworld", "pos": [ 290, 0, 290 ] }, "tracked": false } } } ]

tested in 1.20.6 and 24w20a

misode commented 1 month ago

Thank you for reporting this issue, it has been fixed!