Version 1.0.19b
This commit is contained in:
23
minecraft/kubejs/server_scripts/configurable/nuke.js
Normal file
23
minecraft/kubejs/server_scripts/configurable/nuke.js
Normal file
@@ -0,0 +1,23 @@
|
||||
BlockEvents.rightClicked(event => {
|
||||
if (global.nuke) {
|
||||
if (event.item == 'ftbic:nuke') {
|
||||
event.cancel()
|
||||
}
|
||||
if (event.item == 'industrialforegoing:infinity_nuke') {
|
||||
event.cancel()
|
||||
event.entity.inventoryMenu.broadcastFullState()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
BlockEvents.placed('ftbic:nuke', event => {
|
||||
if (global.nuke) {
|
||||
event.cancel()
|
||||
}
|
||||
})
|
||||
|
||||
EntityEvents.spawned('industrialforegoing:infinity_nuke', event => {
|
||||
if (global.nuke) {
|
||||
event.cancel()
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user