Minecraft Data Packs / Other

Launch Anything Module | 1.18

  • check_circle Functions
  • 2,014 views, 5 today
  • 138 downloads, 0 today
  • 6
  • 1
  • 2
Spuduking's Avatar Spuduking
Level 32 : Artisan Procrastinator
18
Launch any entity at any velocity! Here are some important features:
  • Easy to customize: just copy the template file, change some numbers and the entity!
  • Always shoots from the eyes, and works with any projectile or mob!

How do I use this?
  • Copy the template function sentry:shoot_arrow_1

  • In the copy, change the numbers in the following commands:
  • execute store result storage sentry:sentry rx double 0.000005 run scoreboard players get @s math_out
  • execute store result storage sentry:sentry rz double 0.000005 run scoreboard players get @s math_out
  • execute store result storage sentry:sentry ry double 0.005 run scoreboard players get @s math_out

  • Modify the entity in the last three commands as desired; be sure that entity has the tag 'init' and that you change the target selectors to include the new entity type.

  • Save the copy, and presto! You can now shoot your new projectile by executing the function!


Feel free to give me feedback, bug reports and/or suggestions! Thanks!
CreditCloud wolf's trig tutorial: https://www.youtube.com/watch?v=0cs4HCkHpyU&list=PLAwibcjRJtAHDD3mjYBvde9eHPnws5-jj&index=6
CompatibilityMinecraft 1.18
Tags

Create an account or sign in to comment.

Ezekielman
05/02/2024 3:03 pm
Level 1 : New Explorer
Ezekielman's Avatar
I was wondering, how do you change the speed of the projectiles? I tried a bunch of things, but I couldn't figure it out.
1
Spuduking
05/05/2024 9:51 pm
Level 32 : Artisan Procrastinator
Spuduking's Avatar
just increase the numbers.
Example:
  • execute store result storage sentry:sentry rx double 0.0000075 run scoreboard players get @s math_out
  • execute store result storage sentry:sentry rz double 0.0000075 run scoreboard players get @s math_out
  • execute store result storage sentry:sentry ry double 0.0075 run scoreboard players get @s math_out

The first two numbers cannot be above about 0.00001, and the third number can't be above around 0.01. You shouldn't need them to be any higher in any case, it's very fast!

Let me know if you have any more questions.

Hope this helps!
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome