Smithing Templates

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

CryLool

New Member
Aug 20, 2023
5
0
1
23
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:
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
 

Attachments

  • Screenshot 2023-09-03 150555.png
    Screenshot 2023-09-03 150555.png
    33.8 KB · Views: 98