- check_circle Functions
Published Mar 24th, 2022, 3/24/22 1:42 am
- 2,014 views, 5 today
- 138 downloads, 0 today
18
Launch any entity at any velocity! Here are some important features:
Feel free to give me feedback, bug reports and/or suggestions! Thanks!
- 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!
Credit | Cloud wolf's trig tutorial: https://www.youtube.com/watch?v=0cs4HCkHpyU&list=PLAwibcjRJtAHDD3mjYBvde9eHPnws5-jj&index=6 |
Compatibility | Minecraft 1.18 |
Tags |
5526559
119
Create an account or sign in to comment.
Example:
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!