Started by
viatrophy997
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, So I've created an item called unknownartifact, what i wanted to is to give player one of mod's rare items, maybe even two with only a right click, then remove the unknown artifact, but i dont know procedures and had trouble with creating a chance to drop.
Hello viatrophy997 here are 2 options
1) Here
#1 checks is the player has the "Artifact" in their inventory
#2 picks a number randomly, and if its below 0.5 it will
#3 remove 1 artifact from the players inventory
#4 add 1 item of your choice to the players inventory
If you setting it up like this, then this procedure needs to be attached to your item trigger called "when player right clicks in air" and/or "when player right clicks block"
2) Here
If your doing it this way, you don't need to attach it to your item this procedure will detect if a player is right clicking with the artifact in their main hand.
Thank you
No problem :)