#need help with making a working shockwave

1 messages · Page 1 of 1 (latest)

fleet shale
wild fulcrum
#

You'd need a TON of armor stands to do something like this

#

The idea is to summon a bunch of armor stands in one point and make them each face a direction, then move each stand in the direction they're facing and run fill commands around them

wild fulcrum
#

It would be much better to use scripts for this, since with scripts you don't need to spawn hundreds of entities (armor stands) to make it work, but if you want, functions could work too

#

This could work in 3 ways:

  • spawn hundreds of armor stands at the point of explosion, and move them each in their direction while destroying everything. The farther the explosion is meant to go, the more armor stands you will need, since after a while they will get farther and farther away from each other that you start noticing gaps between the affected areas.
  • spawn only a few armor stands at the point of explosion, then as they advance, spawn more around them to account for the increasing gaps between them. this will make it so there won't be instant server lag when the explosion goes off, but it will slowly lag more and more as the explosion advaces and more stands are spawn
  • OR spawn a few armor stands at the beginning and sort of rotate them around the point of explosion. this might mean that the explosion is slower, but it will lag less
wild fulcrum
#

This is how explosion are calculated in-game, a bunch of rays are shot out of the TNT and the higher the explosion power, the farther they go

#

What you can do is basically representing these rays with armor stands

#

There are thousands of rays in there and after just a few dozen blocks they start to become noticeable, but you can make it so each ray affects multiple blocks around, not just the block it touches