License: MIT
Mod dependencies: tnt
Optional mod dependencies: tnt_revamped Make chest volatile
By setting the chest's group to volatile it will be able to explode, Also it can be made into a trap chest.
Example:
Code: Select all
groups = {volatile = 1}
Setting explosive materials
On any node or item that is to be explosive, set its group to explosive = [insert number]. The number is the radius of the explosion.
Example:
Code: Select all
groups = {explosive = 3}
Trap chest
To make a trap chest place the explodingchest:trap craftitem into any volatile chest. If the chest contains any explosive materials it will blow up on right click.
explodingchest:trap Has no crafting receipt. You have to give it one. These settings can be changed in advanced settings.
To limit the size of the explosion.
Code: Select all
explodingchest.explosion_max = 11
Multiply means explosive material is multiplied.
Reduce means the initial explosion size is set to the biggest explosive material then the rest is dividend by reduce.
Code: Select all
explodingchest.radius_comput = "multiply"
Code: Select all
explodingchest.reduce = 288
Blast Type
Instant blast type means the volatile container will blow up in 0 seconds.
Entity blast type means the volatile container will turn into a entity (You need tnt_revamped mod turn on for this)
Timer blast type means the volatile container will have a delay before blowing up.
Code: Select all
explodingchest.blast_type (Blast type) = "timer"
Instant blast type means the volatile container will blow up in 0 seconds.
Entity blast type means the volatile container will turn into a entity (You need tnt_revamped mod turn on for this)
Timer blast type means the volatile container will have a delay before blowing up.
Code: Select all
explodingchest.trap_blast_type (Trap blast) = "instant"
If timer is set to zero then the timer is auto set to the blast radius size.
Code: Select all
explodingchest.timer = 0
Browse Code
Download