Started by
Zexmus
on
Topic category: Help with Minecraft modding (Java Edition)
Im trying to get this armor to take damage when its in the sun. But i need a itemstack and i dont really know how to add a itemstack
Topic category: Help with Minecraft modding (Java Edition)
Im trying to get this armor to take damage when its in the sun. But i need a itemstack and i dont really know how to add a itemstack
The light level procedure block doesn’t really work (at least for me) because my procedure always actives. Just use “Is entity in sun”.
Also, I think itemstack is just a fancy word for item, otherwise I don’t know. Did you try to use the damage procedure? If you did, did it give you an error?
Just add any code block that contains "provided item" in it. It will automatically add itemstack as a dependency for that procedure, or give you an error that itemstack is not allowed as a dependency.
but you're using "on player tick" event trigger, that event does not provide you with an itemstack
So can I add a itemstack? or get a way to get it damaged?
you would need to write code. do want that?
Does the “on armor tick” trigger provide you itemstack?
or just GLOBAL VAR ITEMSTACK--ARMOR_HEAD_IF_CUSTOM and default:None
WHEN PLAYER SUITS UP WITH THIS ITEM:SET ARMOR_HEAD_IF_CUSTOM TO <PROVIDED_ITEMSTACK>
WHEN PLAYER SUITS DOWN:
SET ARMOR_HEAD_IF_CUSTOM TO <NONE>
PS:None means air and if it doesnt work then:
That's the best image I have ever seen lol
your armor's update tick event does provide you with itemstack
Then it will work :)