1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I need help with this skript what i reload it in game then it won't give me the item

Discussion in 'Requests' started by Madoc, Jun 8, 2022.

  1. Madoc

    Madoc Member

    Joined:
    Jun 6, 2022
    Messages:
    14
    Likes Received:
    0
    Code (Text):
    1. command /godsw:
    2.     permission: server.owner
    3.     permission message: "&cYou do not have permission to do this!"
    4.     trigger:
    5.         give player iron sword named "&1▁ ▂ ▄ ▅ ▆ ▇ █ Gods 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"
    6.  
    7. on damage:
    8.     if name of attacker's held item is "&1▁ ▂ ▄ ▅ ▆ ▇ █ Gods Warrior █ ▇ ▆ ▅ ▄ ▂ ▁":
    9.         add 10000 to the damage


    it won't show the command in chat
     
    #1 Madoc, Jun 8, 2022
    Last edited: Jun 8, 2022
  2. gxmr

    gxmr Member

    Joined:
    Jun 9, 2022
    Messages:
    1
    Likes Received:
    0
    This should work, I just added "to player"


    command /godsw:
    permission: server.owner
    permission message: "&cYou do not have permission to do this!"
    trigger:
    give player iron sword named "&1▁ ▂ ▄ ▅ ▆ ▇ █ Gods 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▁ ▂ ▄ ▅ ▆ ▇ █ Gods Warrior █ ▇ ▆ ▅ ▄ ▂ ▁":
    add 10000 to the damage
    --- Double Post Merged, Jun 9, 2022, Original Post Date: Jun 9, 2022 ---
    Also, wondering, how do you make a fourm post?
     
  3. Madoc

    Madoc Member

    Joined:
    Jun 6, 2022
    Messages:
    14
    Likes Received:
    0



    I tested that and it still does not show the command in chat
    --- Double Post Merged, Jun 10, 2022 ---
    see this is what i am talking about
     

    Attached Files:

  4. swaith

    Supporter

    Joined:
    May 4, 2021
    Messages:
    23
    Likes Received:
    1
    Try

    Code (Text):
    1. options:
    2.   nopermission: &cYou do not have permission to do this!.
    3.  
    4. command /godsw:
    5.     trigger:
    6.         if player has the permission "server.owner":
    7.             give player iron sword named "&1▁ ▂ ▄ ▅ ▆ ▇ █ Gods 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"
    8.         else:
    9.             send "%{nopermission}%"
    10. on damage:
    11.     lore of attacker's held item contains "&1▁ ▂ ▄ ▅ ▆ ▇ █ Gods Warrior █ ▇ ▆ ▅ ▄ ▂ ▁":
    12.         add 10000 to the damage
    13.  
    Fair warning your damage check is only for that lore, may want to restrict it further so someone doesn't get themselves just any item with that lore check and ruins people slapping them with fancy dirt etc
     
  5. Madoc

    Madoc Member

    Joined:
    Jun 6, 2022
    Messages:
    14
    Likes Received:
    0


    What skript plugins do i need for it to work?
     
  6. swaith

    Supporter

    Joined:
    May 4, 2021
    Messages:
    23
    Likes Received:
    1
    well given the way its written I would expect nothing outside a permissions handler of some kind, I haven't tested it myself unfortunately just re-wrote it using the parser.

    KInd regards,
     
  7. Madoc

    Madoc Member

    Joined:
    Jun 6, 2022
    Messages:
    14
    Likes Received:
    0
    every time I put the code in the skript file this happends


    do you know why
    --- Double Post Merged, Jun 10, 2022, Original Post Date: Jun 10, 2022 ---
    it won't let me do the command and i am op
     

    Attached Files:

  8. swaith

    Supporter

    Joined:
    May 4, 2021
    Messages:
    23
    Likes Received:
    1
    The skript should be in a folder specifically for scripts, I can't see anything wrong without testing it at home unfortunately.
     
  9. Madoc

    Madoc Member

    Joined:
    Jun 6, 2022
    Messages:
    14
    Likes Received:
    0

    It is in the skript folder with the other skripts
     
  10. swaith

    Supporter

    Joined:
    May 4, 2021
    Messages:
    23
    Likes Received:
    1
    In a completely new skript write the following and see if it does anything

    Code (Text):
    1. on command /test1:
    2.     give dirt to the player
    3.     message "Testing Complete"
     
  11. Madoc

    Madoc Member

    Joined:
    Jun 6, 2022
    Messages:
    14
    Likes Received:
    0
     

    Attached Files:

  12. swaith

    Supporter

    Joined:
    May 4, 2021
    Messages:
    23
    Likes Received:
    1
    Sorry thats my fault, I was copying it from elsewhere and didn't check.

    Code (Text):
    1. command /test1:
    2.     Trigger:
    3.         give dirt to the player
    4.         message "Testing Complete"
     
  13. Madoc

    Madoc Member

    Joined:
    Jun 6, 2022
    Messages:
    14
    Likes Received:
    0
     

    Attached Files:

  14. swaith

    Supporter

    Joined:
    May 4, 2021
    Messages:
    23
    Likes Received:
    1
    Have you got the right version of skript installed? and the version of minecraft is correct? There was an update recently and I believe currently the supported build is for 1.18 only (though perhaps Im wrong) - it might be worth taking this to the discord* as I don't want to give you the wrong advice. It feels like this is more the system then the skript though
     
  15. Madoc

    Madoc Member

    Joined:
    Jun 6, 2022
    Messages:
    14
    Likes Received:
    0
    how do i put all of this into triggers
    --- Double Post Merged, Jun 10, 2022, Original Post Date: Jun 10, 2022 ---
    do you know what this means
     

    Attached Files:

Share This Page

Loading...