#please I need help
1 messages ยท Page 1 of 1 (latest)
Uhm those two recipes ain't the same.
Oh
๐
Can you make it a code block of just that code then.
if shooter's tool is {Tnt_bow}:
set {_arrow} to projectile
wait 1 tick
set {_location} to location of {_arrow}
spawn primed tnt at {_location}
delete {_arrow}
Tnt invitory trigger
I want to make a bow that craftble and shoots tnt and only works on that specific crafted bow and also it only works if you have some tnt in your inventory doesn't shoot arrows
Recipe I already got
on load:
set {Tnt_bow} to a bow named "&cTNT Bow"
register new shaped recipe for {Tnt_bow} named "&cTNT Bow" using gold block, diamond, gold block, diamond, totem of undying, diamond, gold block, diamond, and gold block with id "tnt_bow" ```
What that mean
on shoot:
if shooter's tool is {Tnt_bow}:
set {_arrow} to projectile
wait 1 tick
set {_location} to location of {_arrow}
spawn primed tnt at {_location}
set velocity of last spawned entity to velocity of {_arrow}
delete {_arrow}
works just fine
It didn't for me idk why
on shoot:
if shooter's tool is {Tnt_bow}:
set {_arrow} to projectile
wait 1 tick
set {_location} to location of {_arrow}
spawn primed tnt at {_location}
set velocity of last spawned entity to velocity of {_arrow}
delete {_arrow}
on load:
set {Tnt_bow} to a bow named "&cTNT Bow"
command /testing:
trigger:
give 1 of {Tnt_bow} to player
the exact code used
skript version 2.9.1
skbee is the only addon installed
Is it also possible to make it instant explode when hits something or a antity
Thanks
you can make it create an explosion when it hits the target instead of spawning a TNT
Okay I'll try
on shoot:
if shooter's tool is {Tnt_bow}:
set {_arrow} to projectile
wait 1 tick
set {_location} to location of {_arrow}
Summon explosion at {_location}
set velocity of last spawned entity to velocity of {_arrow}
delete {_arrow}
on load:
set {Tnt_bow} to a bow named "&cTNT Bow"
command /testing:
trigger:
give 1 of {Tnt_bow} to player
?