Started by
BlaBlaSillySheep
on
Topic category: Help with Minecraft modding (Java Edition)
As the title says, how can i do this. I want to also make it so that it drops after a certain amount of time if wearing a piece of armor, otherwise not. And yes i dont think this is possible without coding but can someone help me with this.
I've no clue on how you can do the first thing, however with the armor you could do an 'On player tick' procedure which checks the respective armor slots via If else statements, and if they all check out it sets a global variable to 1 more. Then you would need to multiply how long you want the armor to be worn(in seconds) by 20 to get how many ticks would be needed. Finally, you'd run an If statement on whatever drops the drop you mentioned to check if the global variable is greater than or equal to your desired time in ticks. Granted, this isn't super multiplayer-friendly from what I know, but it should get the job done.