Skip to content

Explosive Condensed

Robin Seifert edited this page Jul 3, 2023 · 5 revisions

Condensed

A TNT style explosive that is slightly more effective and triggers instantly. By default has an explosion scale of 6 vs vanilla TNT with 4.

Vanilla TNT Scales
Entity Scale
Wither Skull 1
Fire Ball 1
Creeper 3
TNT Block 4
TNT Cart 4 + random with a max 7.5 bonus
Bed 5
Creeper Powered 6
Ender Crystal 6
Dragon Pillar Summon 5
Dragon Summon 6
Wither 7

Logic (Blast TNT)

Short version: Its the same as vanilla TNT with slight changes

Long Version

Runs a slighly modified version of vanilla's star-pattern raytrace. Using 16 traces per axis allowing for great coverage at smaller scales. However, horrible performance and coverage at larger scales. Only changes to this logic are small and mostly to give better customization. At the end of the day it is TNT logic.

star-pattern raytrace -> custom name given to the way the raytrace gives a spiked ball star shape at larger sizes.

Size 4 vs 6 simulation

Images generated using ICBM-Classic Calculator Project which simulates explosive effect in a 2D pattern. Allowing for visualization of what the logic does independent from the game engine. The images show the block grid it would effect. As well a heat map of raytrace hits. With the raytraces drawn as line segments to easily see functionality.

TODO for self: show energy calculations and visually scale each image :)

Large sizes

At sizes above 6 the logic will start to fail little by little. Resulting in blocks being missed and horrible performance. This is due to how the raytracing logic works. So it is suggested to avoid increasing the scale. Instead it is recommended to introduce a new explosive using a better algorithm. Such as our box wall raytracer or shell pathfinder. Both are able to scale at higher sizes though can see sharp increases in memory usage. With their only limit being volume of integer max. Purely due to the data structures being used to retain positional data during calculations.

Visualizations Examples of large sizes using TNT blast. As follows scale 8, scale 10, scale 20

Configs

Name Default Purpose
scale 6 Size of the explosive
Clone this wiki locally