I'm trying to make a staff that give your a armor trim based off the chances of actual mc
When i tried it, it said "'1 silence armor trim smithing template' can't be added to a player because the former is neither an item type, an inventory nor and experience point."
here is my code:
When i tried it, it said "'1 silence armor trim smithing template' can't be added to a player because the former is neither an item type, an inventory nor and experience point."
here is my code:
on rightclick with bone:
if name of player's held item contains "&5&lStaff of Templates":
send "{@prefix} &2You have used the ""&f&5&lStaff of Templates""&f&2."
chance of 1.2%:
give 1 silence armor trim smithing template to the player
else:
chance of 5%:
give 1 ward armor trim smithing template to the player
else:
chance of 6.7%:
give 1 rib armor trim smithing template to the player
else:
chance of 6.7%:
give 1 spire armor trim smithing template to the player
else:
chance of 8.3%:
give 1 raiser armor trim smithing template to the player
else:
chance of 8.3%:
give 1 host armor trim smithing template to the player
else:
chance of 8.3%:
give 1 shaper armor trim smithing template to the player
else:
chance of 8.3%:
give 1 wayfinder armor trim smithing template to the player
else:
chance of 8.3%:
give 1 snout armor trim smithing template to the player
else:
chance of 10%:
give 1 eye armor trim smithing template to the player
else:
chance of 14.3%:
give 1 dune armor trim smithing tempalate to the player
else:
chance of 16.7%:
give 1 coast armor trim smithing template to the player
else:
chance of 20%:
give 1 sentry armor trim smithing template to the player
else:
chance of 33.3%:
give 1 wild armor trim smithing template to the player
else:
chance of 50%:
give 1 vex armor trim smithing template to the player