Started by
NoahBearGaming
on
Topic category: Help with MCreator software
I am trying to make an SMP and need a throwable tnt. I need to make it work in survival mode and fires when you press right click. I also need it to NOT explode on my Minecraft player when throwing the tnt (dynamite) Can someone please help me out, I've been trying to get this to work in 1.20.1 forge and there are no helpful tutorials.
You probably don't want to do this with a Ranged item, as they have a lot of built in code that can be hard to work with for throwable stuff. The basic idea would be like this:
I've made stuff like this before, so I could also send some screenshots if that would be helpful. Good luck!
If you want an easy way, just make a ranged item with dynamite texture --> go to triggers --> add a procedure to when projectile hits block and projectile hits entity --> inthe procedure add explosion level of your choice
Thats really helpful! I don't know how to make it so that it shoots the dynamite out of my hand in survival, because when I did this it just explodes right onto me. How do I fix this?
This is pretty much how you could do it:
1) Create a ranged item:
Mess around with these settings however you want, and you can choose ammo for it if you'd like
2) While your ranged item tab is open, create a new item for the projectile texture and call it whatever you want:
3) Make sure to use the new item as the "texture representing projectile" for your ranged item
4) Open the triggers tab of the ranged item, and find the following two triggers (when projectile hits block & when projectile hits living entity):
5) Click + on one of them, and create the following procedure
6) Add the procedure to both triggers
7) Dont forget to save all your elements