#how to prevent tnt from being used in a dim with a dispenser
22 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
or a way to prevent a block from being put in a dispenser
You can just prevent people from getting TNT
just check for entityspawn
EntityEvents.spawned('minecraft:tnt', event =>{
if (event.level.dimension == 'minecraft:overworld') event.cancel()
})```
that will just cancel the primed TNT from spawning
Would a player still waste it tho?
so ill ahve to do this for every expolding item
Could make a
const explodeEntity = ["list of", "exploding entities"]
And instead of adding it directly to the event
U do
if(explodeEntity.contains(event.entity.id) event.cancel()
Is it possible to cancel damage from explosions
Saying as an alternative to doing all the ids
I have yo make a list of 200 blocks this will be fun XD
why do u have 200blocks of explosion items
maybe u can do some RegEx shenanigans, but i dont know how, maybe someone else can help with that
@shell elk Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!
@shell elk Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!
@shell elk Unresolved thread still hasn't been closed! If your question was answered, please close this post with </ticket close:1054771505520717835> command!
