Started by
PoisonousPotato
on
Topic category: Help with Minecraft modding (Java Edition)
I'm making a mob that will be a blackhole. It will start pushing mobs to it, and slowy destroying blocks in the area. It will start pulling mobs faster when closer to it.
However, i can't figure out how to make (actually i just don't know how to use procedures to crate cool stuff, just to spawn mobs, strike lightnings, etc.)
Help please
First get the x y z of the blackhole. Then use entity iterator to get all entities in a set area (however much you want). On entity iterator get the entities x y z. Attempt to make entity move to x y z of the black hole. Then override vx vy vz to a decently high value to pull the entity to it. You can then check if entities x y z is the same as the blackholes and override its vx vy vz to 0 so it stays where the black hole is and deal damage or whatever to it. To break the blocks you can make explosions which increase in size to break a wider and wider area. To make them faster when closer you would need to use some sort of equation so the longer theyre moving the faster they get etc or the closer the x and z values are. Something like that try and see what works.
can you give images to this and the weird block post please?
^On tick update for entity^
You should make a cooldown for the explosion so it only blows up every 10 seconds or so. Also the second half of the procedure (else if part) is only really needed if the entity is flying. The first bit is so the explosion didnt grow forever and crash the game. You can change the square cube size to change the range of the ability.
ok you explained it better but i said images :( you can use any image sharing website
same for the weird block one
I literally put an image for both
https://imgur.com/user/fr617/posts