You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
For a long while now I tried to use auto_lighter again but upon clicking with the torch it vanishes and I get the error:
Tried to load invalid item: 'No key id in MapLike[{Enchantments:[{id:"minecraft:protection",lvl:1s}]}]'
My knowledge of minecraft internals, let alone scarpet are very limited so I have no idea what exactly that means ( I can only guess that at some point the data was required to have an id field and somehow it is missing )
It seems that this is happening from within the __on_player_uses_item function, whose logic I have no idea what it does, I have ever since wondered why the torch for that script is enchanted afterwards...
When printing the item object in that function before editing it says (notice its a stack of 33 there )
Describe the bug
For a long while now I tried to use auto_lighter again but upon clicking with the torch it vanishes and I get the error:
My knowledge of minecraft internals, let alone scarpet are very limited so I have no idea what exactly that means ( I can only guess that at some point the data was required to have an id field and somehow it is missing )
It seems that this is happening from within the
__on_player_uses_item
function, whose logic I have no idea what it does, I have ever since wondered why the torch for that script is enchanted afterwards...When printing the item object in that function before editing it says (notice its a stack of 33 there )
After editing it says
so it looks like the id part is gone...
So I tried adding the line
after the Enchantments part is added, and then it seems to work but I have no idea if thats the right way
Environment
roblem here.
The text was updated successfully, but these errors were encountered: