Started by
MamaLuigi
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make a new type of TNT with works the same as normal TNT, but it is blue instead of red, its explosive power is 5 times more, and it has a firey explosion, (like fireballs, beds, or respawn anchors).
How would I go about doing this, and is it even possible?
Any help would be greatly appreciated!
Edited by MamaLuigi on Thu, 02/15/2024 - 16:28
so you have to break down tnt, its a block that when triggered(left clickeed by flint) then the tnt will break(no particles) and summon an entity(blue tnt mob) that has no ai immune to all damage, and will have an animated texture that becomes white and black rapidly, that will explode using an nbt timer, or potion effect that blows up when it ends(wait block can be broken by leaving and joining) and then when that timer/effect ends the entity explodes with that power and is despawned
Thanks! I'll try this out!
One thing, how do i give the custom tnt entity an animated texture?
2 things can be done, because Mcreator only supports blocks being animated, you will need custom code. To do it in Mcreator (this is a dumb solution so maybe just make it sprout white particles and be dark grey block mob, if you chose to read the rest, good luck, I hope you are good at English) you can have 2 version of the mob white and dark grey and it will on every 5th tick make the mob spawn the other one and despawn the current, now since you will use a timer carry that timer over, this can be done by spawning the mob, effecting the closest entity that is that mob with the potion effect (if nbt give that nbt to that mob with the same variable), use the get remaining ticks and get level amp from the first mob so that it will continue the potion effect/nbt. this is overly complicated but it's the only solution with Mcreator i can think of. I hoep I healped
oh and to get the 5th tick just do nbt number/potion remaining tick mod 5, if its equal to 0 then switch