Advertisement
L0v0lup

Skript ✎ Erste Schritte: Skript-Reflect #151 Tutorial

Mar 10th, 2022 (edited)
802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. command 3:
  2.     trigger:
  3.         open chest inventory with 6 rows named "&6Test" to player
  4.         set slot 1 of current inventory to black stained glass pane named " "
  5.         set slot 2 of current inventory to red stained glass pane named " "
  6.  
  7. on inventory click:
  8.     clicked slot = 1:
  9.         cancel event
  10.  
  11. import:
  12.     org.bukkit.event.inventory.InventoryClickEvent
  13.     org.bukkit.event.block.BlockDropItemEvent
  14.  
  15. on InventoryClickEvent:
  16.     event.getRawSlot() = 2
  17.     event.setCancelled(true)
  18.  
  19. on BlockDropItemEvent:
  20.     event.setCancelled(true)
  21.  
  22. on BlockDropItemEvent:
  23.     broadcast "1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement