Category: fun??
Suggested name: ThrowTNT
What I want:
when you click with a tnt block in your hand it will throw it in the direction you're looking about 2 blocks ahead of you and explode 1.5 seconds after you throw it
Ideas for commands: nun
Ideas for permissions: nun
When I'd like it by: anytime soon would be noice
[doublepost=1514433802,1514273697][/doublepost]Solved it myself
if anyone is wondering what i did: (requiers skellett)
on click:
if player's tool is a TNT:
cancel event
remove 1 TNT from player's inventory
spawn 1 primed TNT at location of block above player
set fuse time of the last spawned primed TNT to 30
wait 1 tick
push last spawned tnt in direction of player with force 0.4
Suggested name: ThrowTNT
What I want:
when you click with a tnt block in your hand it will throw it in the direction you're looking about 2 blocks ahead of you and explode 1.5 seconds after you throw it
Ideas for commands: nun
Ideas for permissions: nun
When I'd like it by: anytime soon would be noice
[doublepost=1514433802,1514273697][/doublepost]Solved it myself
if anyone is wondering what i did: (requiers skellett)
on click:
if player's tool is a TNT:
cancel event
remove 1 TNT from player's inventory
spawn 1 primed TNT at location of block above player
set fuse time of the last spawned primed TNT to 30
wait 1 tick
push last spawned tnt in direction of player with force 0.4