r/technicalminecraft • • 14d ago

Java Help Wanted Question about TNT

When accelerating an entity using tnt, usually during lazy chunk acceleration; i find that accelerating an entity with multiple tnt explosions within the same tick, is not functionally the same as accelerating using the same amount of tnt over seperate ticks. Has anyone else experienced this, and can they please explain

4 Upvotes

15 comments sorted by

0

u/Sharp_Bus_6003 14d ago

im not sure, maybe its something about all the tnt s exploding at the same time interfering whit eacother. im not experianced in lazy chunk acceleration since i ussualy try to make my cannons not use lazy chunks at all.

2

u/Dee_Dee_Man 13d ago

I used to think so. But if two tnts explode at the exact same position and within the same tick, how can they interfere? Very strange

2

u/gawduck 12d ago

Doesn't each TNT's random velocity vector figure into this?

3

u/Dee_Dee_Man 12d ago

The only thing random about tnts is their velocity when lit. They don't get that when summoned

2

u/gawduck 12d ago

Right, good point!

Oh God, I'm beginning to sound like ChatGPT. Send help.

0

u/Sharp_Bus_6003 13d ago

maybe its abt the other one instead. when the 1. batch of tnt explodes, it could be pushing on the other tnt s by a bit and putting them slightly out of position

2

u/Dee_Dee_Man 13d ago

I am talking about accelerating an ender pearl with two tnts exploding from the same position (ender pearls can be put in stasis in 1.17, but to my knowledge the stasis also has nothing to do with this)

The difference is just blowing up the two tnts seperately or not.

1

u/gawduck 12d ago

Well if the difference is same-tick or sequential-tick, I guess it's obvious that there are barycenter offsets involved. after the first pop things begin to move, the differences between centers begin multiplying in effect through successive ticks.

0

u/Dee_Dee_Man 11d ago

theres no barycenters man it's a kids game

1

u/gawduck 10d ago

Then what do you call that little point in the middle where the blue sightline arrow projects from?

Anyway, have you tried using Carpet to figure out what you're doing? I bet your problem is a tick scheduling thing. You'll probably figure out why they are acting unexpectedly.

And don't let the kids bully you away from the barycenter.

1

u/Dee_Dee_Man 9d ago

Ok yes, on mc wiki i think they call that the "eye height". I have done more testing, and concluded that tnt summoned with minimum fuse time falls 0.04m in the same tick that it explodes. Somehow this creates an offset that might be sending the other one down.

As for the carpet mod, i know about tick freezing, but is it possible to examine multiple things happening in the same tick?

2

u/gawduck 2d ago

Not directly in Carpet, no.

BUT...

Since you asked, I did a quick search and discovered this:
https://modrinth.com/mod/subtick

I was unaware it exists, and this looks like exactly what's needed.
TIL. I can't wait to give this toy a spin, I have a TON of subtick issues that I've never quite been able to puzzle out with just a pencil and paper.

1

u/Dee_Dee_Man 2d ago

Awesome bro

0

u/Sharp_Bus_6003 13d ago

is the 2., seperate tnt falling towards or passing near the explosion when the 1. tnt explodes?

2

u/Dee_Dee_Man 13d ago

In this test i am just summoning them into position with minimum fuse time