Solved TNT Bow

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ChocoAura

Member
Jul 3, 2019
38
0
6
24
Hello, so I want to create a bow where when the arrow lands, it puts a block of ignited TNT there. Is there a way to do that?

The code I have so far is:

Code:
on projectile hit:
    shooter is a player:
        if shooter's tool is a bow:
            if name of shooter's tool is "&cT&fN&cT &7Bow":
                set event-block to ignited tnt

The error is:
Code:
a block can't be set to ignited tnt because the latter is not an item type

Thanks in advance!
 
Hi. Try
Code:
primed tnt
instead of
Code:
ignited tnt
Didn't work.

My code is

Code:
on projectile hit:
    shooter is a player:
        if shooter's tool is a bow:
            if name of shooter's tool is "&cT&fN&cT &7Bow":
                set event-block to ignited tnt

and it says

Code:
use 'projectile' and/or 'shooter' in projectile hit events (skripts/customitems.sk, line 119: set event-block to primed tnt')
[doublepost=1563912301,1563912161][/doublepost]
Didn't work.

My code is

Code:
on projectile hit:
    shooter is a player:
        if shooter's tool is a bow:
            if name of shooter's tool is "&cT&fN&cT &7Bow":
                set event-block to ignited tnt

and it says

Code:
use 'projectile' and/or 'shooter' in projectile hit events (skripts/customitems.sk, line 119: set event-block to primed tnt')
event-block doesn't work.

I tried "set block at projectile to primed tnt" and it didnt work, however "set block at projectile to tnt" did work. I tried it with cobblestone and it also worked, so primed tnt doesn't work.
 
Mmm... try this:
code_language.skript:
on projectile hit:
    shooter is a player:
        if shooter's tool is a bow:
            if name of shooter's tool is "&cT&fN&cT &7Bow":
                spawn tnt at event-projectile
 
Status
Not open for further replies.