How to make circle out of tnt entitys

Started by Cabbage_Gomez on

Topic category: Help with modding (Java Edition)

Last seen on 00:39, 7. Jul 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make circle out of tnt entitys

I'm making a mod that has a remote with 2 options stab charge [makes a hole deep] and nuke [10 circles of tnt] and for the nuke i need circles out of tnt. How do I make a circle out of tnt

Last seen on 02:18, 7. Jul 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you can do this with a few…
Wed, 06/26/2024 - 02:12

you can do this with a few steps.

  1. make a local variable named "direction"
  2. set the direction to 0.
  3. after that, add a loop that repeats 360 times.
  4. set direction to direction+1.
  5. in the "world"->"actions" category there is a "summon entity of type {} with yaw:{} pitch:{} vx:{} vy:{} vz:{}" put this in the loop.
  6. keep yaw and pitch 0.
  7. set vy to how high you want it to fly, vx to the sine(found in math category with default "round", and sine is abbreviated as "sin".) of the "direction" variable, and vz to the cosine(found with sine and abbreviated as "cos".) of the "direction variable."
  8. watch it work!

I recommend if you have the time, to learn trigonometric functions, as they can be very useful in the future.

Last seen on 00:39, 7. Jul 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
and where is the local…
Wed, 06/26/2024 - 02:18

and where is the local variable named "direction"