Basically im trying to make it so when i right click a chest it will instantly close it then execute the command /trash. If anyone knows how to do this please help
With skript you might have to research it a little bit. But this can easily be done using the InventoryOpenEvent. If the inventory == Inventory.CHEST p.closeInventory(); or e.setCancelled(true) p.performCommand("trash");