hyperdefined / ToolStats

Track various tool stats!
https://www.spigotmc.org/resources/tabcompleter.88952/
17 stars 6 forks source link

Lore creator not visible #85

Open WaxenSs opened 2 weeks ago

WaxenSs commented 2 weeks ago

When my players craft a custom item using the Oraxen plugin, all the lores work (mined blocks, etc.) except for the creator's (It worked with custom datapack items). The command /toolstats reset confirm also doesn't add it.

Here's the paper dump:

minecraft:diamond_pickaxe[item_name='{"color":"white","translate":"items.hammer_diamond"}',attribute_modifiers={modifiers: [{amount: -0.2d, id: "minecraft:6b23cc3f-9632-4e4b-a059-a71bb091b100", operation: "add_multiplied_base", slot: "hand", type: "minecraft:generic.movement_speed"}]},custom_data={PublicBukkitValues: {"oraxen:id": "diamond_hammer", "toolstats:generic-mined": 73}},custom_model_data=1000,damage=9,lore=['{"extra":[{"bold":false,"color":"gray","italic":false,"obfuscated":false,"strikethrough":false,"text":"Blocs cassés: ","underlined":false},{"color":"dark_gray","italic":false,"text":"73"}],"text":""}']]

image

hyperdefined commented 2 weeks ago

It's probably because Oraxen uses a custom crafting system is my guess. I don't own that plugin so I am not sure how they do it.

WaxenSs commented 1 week ago

To crafter the item we use the CustomCrafting plugin, you'll find its github page here. But come to think of it, you're probably right, because when I give myself the item, your spawned-in function works. image I don't know if this info will change anything.