Jump to content

Can somebody help me.I want to make a script that if you sneak and right click with an iron sword named &6isword,it throws a tnt


Recommended Posts

  • Pix3lPanos changed the title to Can somebody help me.I want to make a script that if you sneak and right click with an iron sword named &6isword,it throws a tnt
on right click:
    player is sneaking
	if player's held item is iron sword named "&6isword":
		spawn a primed tnt 1 meter above the player
		push the spawned entity in direction of player at speed 0.9
		push the spawned entity upwards at speed 0.2

Try something like this. If it doesn't work lmk
 

  • Like 1

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...