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
- on right click on iron door:
- if block below event-block is red concrete:
- if tag "level" of nbt of player's tool >= 5:
- open clicked block
- play sound "block.iron_door.open" to player
- wait 1 second
- close clicked block
- play sound "block.iron_door.close" to player
- else:
- send "&3you are using the wrong keycard"
- if block below event-block is green concrete:
- if tag "level" of nbt of player's tool >= 4:
- open clicked block
- play sound "block.iron_door.open" to player
- wait 1 second
- close clicked block
- play sound "block.iron_door.close" to player
- else:
- send "&3you are using the wrong keycard"
- if block below event-block is blue concrete:
- if tag "level" of nbt of player's tool >= 3:
- open clicked block
- play sound "block.iron_door.open" to player
- wait 1 second
- close clicked block
- play sound "block.iron_door.close" to player
- else:
- send "&3you are using the wrong keycard"
- if block below event-block is yellow concrete:
- if tag "level" of nbt of player's tool >= 2:
- open clicked block
- play sound "block.iron_door.open" to player
- wait 1 second
- close clicked block
- play sound "block.iron_door.close" to player
- else:
- send "&3you are using the wrong keycard"
- if block below event-block is cyan concrete:
- if tag "level" of nbt of player's tool >= 1:
- open clicked block
- play sound "block.iron_door.open" to player
- wait 1 second
- close clicked block
- play sound "block.iron_door.close" to player
- else:
- send "&3you are using the wrong keycard"