Dependencies:
- PlaceholderAPI and Player Expansion
Explanation:
When you place down the eb, it does not contain anything. You have to be on operator mode (/op) to edit the contents. After setting up the loot, to test, you need to deop yourself. When you click on the eb, it would spawn items except the chest itself (and any other chest items)
Basically upon clicking, a copy of the block gets saved 2 blocks under it and breaks the main block using the setblock command, dropping everything but killing the chest item then copies back the duplicated chest and deleting the other chest
- PlaceholderAPI and Player Expansion
Explanation:
When you place down the eb, it does not contain anything. You have to be on operator mode (/op) to edit the contents. After setting up the loot, to test, you need to deop yourself. When you click on the eb, it would spawn items except the chest itself (and any other chest items)
Basically upon clicking, a copy of the block gets saved 2 blocks under it and breaks the main block using the setblock command, dropping everything but killing the chest item then copies back the duplicated chest and deleting the other chest