I need help with the command it runs the command but does not give the sword

  • 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!

Madoc

Member
Jun 6, 2022
14
0
1
20
Code:
command /godsW:
    trigger:
    permission: op
    permission message: "You do not have permission to run this command!"
on right click:
  if player's tool is iron sword:
    give player 1 iron sword named "&1▁ ▂ ▄ ▅ ▆ ▇ █ God's Warrior █ ▇ ▆ ▅ ▄ ▂ ▁" with lore "&6Damage: &c+10000 || &6Ability: Instant Transmission &e&lRIGHT CLICK || &7Teleport &a8 blocks &7ahead of you" and "&8gain +50 &r♢ speed &7for &a10 seconds || &7Mana cost: &350 || || &5&lMythical" to player
    
on damage:
    if name of attacker's held item is "&1▁ ▂ ▄ ▅ ▆ ▇ █ God's Warrior █ ▇ ▆ ▅ ▄ ▂ ▁":
        add 10000 to the damage
 
replace line 7 of the code with

give 1 of iron sword named "&1▁ ▂ ▄ ▅ ▆ ▇ █ God's Warrior █ ▇ ▆ ▅ ▄ ▂ ▁" with lore "&6Damage: &c+10000 || &6Ability: Instant Transmission &e&lRIGHT CLICK || &7Teleport &a8 blocks &7ahead of you" and "&8gain +50 &r♢ speed &7for &a10 seconds || &7Mana cost: &350 || || &5&lMythical" to player