keycard for this skript

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

    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!

Pepega101

Member
Aug 2, 2023
1
0
1
Hello i need Help i have a skript for doors for my Prison server But i dont have the keycards can someone please help me make a /eigive to get the keycard the skript is

  1. on right click on iron door:
  2. if block below event-block is red concrete:
  3. if tag "level" of nbt of player's tool >= 5:
  4. open clicked block
  5. play sound "block.iron_door.open" to player
  6. wait 1 second
  7. close clicked block
  8. play sound "block.iron_door.close" to player
  9. else:
  10. send "&3you are using the wrong keycard"
  11. if block below event-block is green concrete:
  12. if tag "level" of nbt of player's tool >= 4:
  13. open clicked block
  14. play sound "block.iron_door.open" to player
  15. wait 1 second
  16. close clicked block
  17. play sound "block.iron_door.close" to player
  18. else:
  19. send "&3you are using the wrong keycard"
  20. if block below event-block is blue concrete:
  21. if tag "level" of nbt of player's tool >= 3:
  22. open clicked block
  23. play sound "block.iron_door.open" to player
  24. wait 1 second
  25. close clicked block
  26. play sound "block.iron_door.close" to player
  27. else:
  28. send "&3you are using the wrong keycard"
  29. if block below event-block is yellow concrete:
  30. if tag "level" of nbt of player's tool >= 2:
  31. open clicked block
  32. play sound "block.iron_door.open" to player
  33. wait 1 second
  34. close clicked block
  35. play sound "block.iron_door.close" to player
  36. else:
  37. send "&3you are using the wrong keycard"
  38. if block below event-block is cyan concrete:
  39. if tag "level" of nbt of player's tool >= 1:
  40. open clicked block
  41. play sound "block.iron_door.open" to player
  42. wait 1 second
  43. close clicked block
  44. play sound "block.iron_door.close" to player
  45. else:
  46. send "&3you are using the wrong keycard"
 
omg, finally someone doing a keycard skript using nbts, tysm now I don't have to explain nbts. but please do use codeblocks. also I would put this in requests.
Code:
command /eigive:
  permission: op
  permission message: &cYou are strictly prohibited to use this command!
  trigger:
    set {_i} to 1 of paper named "&6Keycard" with lore "&cRight kick with this keycard in hand to use it once you are at the needed door!"
    set {_n} to nbt compound of {_i}
    set tag "level" of {_n} to 5
    give {_i}
 
Hello i need Help i have a skript for doors for my Prison server But i dont have the keycards can someone please help me make a /eigive to get the keycard the skript is

  1. on right click on iron door:
  2. if block below event-block is red concrete:
  3. if tag "level" of nbt of player's tool >= 5:
  4. open clicked block
  5. play sound "block.iron_door.open" to player
  6. wait 1 second
  7. close clicked block
  8. play sound "block.iron_door.close" to player
  9. else:
  10. send "&3you are using the wrong keycard"
  11. if block below event-block is green concrete:
  12. if tag "level" of nbt of player's tool >= 4:
  13. open clicked block
  14. play sound "block.iron_door.open" to player
  15. wait 1 second
  16. close clicked block
  17. play sound "block.iron_door.close" to player
  18. else:
  19. send "&3you are using the wrong keycard"
  20. if block below event-block is blue concrete:
  21. if tag "level" of nbt of player's tool >= 3:
  22. open clicked block
  23. play sound "block.iron_door.open" to player
  24. wait 1 second
  25. close clicked block
  26. play sound "block.iron_door.close" to player
  27. else:
  28. send "&3you are using the wrong keycard"
  29. if block below event-block is yellow concrete:
  30. if tag "level" of nbt of player's tool >= 2:
  31. open clicked block
  32. play sound "block.iron_door.open" to player
  33. wait 1 second
  34. close clicked block
  35. play sound "block.iron_door.close" to player
  36. else:
  37. send "&3you are using the wrong keycard"
  38. if block below event-block is cyan concrete:
  39. if tag "level" of nbt of player's tool >= 1:
  40. open clicked block
  41. play sound "block.iron_door.open" to player
  42. wait 1 second
  43. close clicked block
  44. play sound "block.iron_door.close" to player
  45. else:
  46. send "&3you are using the wrong keycard"
I can help you with this. Expect a conversation from me.
 
omg, finally someone doing a keycard skript using nbts, tysm now I don't have to explain nbts. but please do use codeblocks. also I would put this in requests.
Code:
command /eigive:
  permission: op
  permission message: &cYou are strictly prohibited to use this command!
  trigger:
    set {_i} to 1 of paper named "&6Keycard" with lore "&cRight kick with this keycard in hand to use it once you are at the needed door!"
    set {_n} to nbt compound of {_i}
    set tag "level" of {_n} to 5
    give {_i}
You misspelled something, you said "kick" not "click" here is the fixxed version:

Code:
command /eigive:
  permission: op
  permission message: &cYou are strictly prohibited to use this command!
  trigger:
    set {_i} to 1 of paper named "&6Keycard" with lore "&cRightclick with this keycard in hand to use it once you are at the needed door!"
    set {_n} to nbt compound of {_i}
    set tag "level" of {_n} to 5
    give {_i}