blackhole help :)

Started by PoisonousPotato on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
blackhole help :)

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

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First get the x y z of the…
Tue, 09/24/2024 - 01:24

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.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
can you give images to this…
Tue, 09/24/2024 - 02:07

can you give images to this and the weird block post please?

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
^On tick update for entity^…
Tue, 09/24/2024 - 18:40

^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.

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok you explained it better…
Tue, 09/24/2024 - 23:48

ok you explained it better but i said images :( you can use any image sharing website

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
same for the weird block one
Tue, 09/24/2024 - 23:48

same for the weird block one

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I literally put an image for…
Wed, 09/25/2024 - 23:53

I literally put an image for both