#please I need help

1 messages ยท Page 1 of 1 (latest)

static plume
#

It 1.21 I can't figure why it isn't working

plucky lava
#

Uhm those two recipes ain't the same.

static plume
plucky lava
#

๐Ÿ’€

static plume
#

The shooting code ain't working

plucky lava
#

Can you make it a code block of just that code then.

static plume
# plucky lava 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" ```
plucky lava
#

Of just the relevant code.

#

The recipe isn't relevant to the shooting

static plume
plucky lava
# static plume 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

static plume
plucky lava
#
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

static plume
#

Thanks

plucky lava
#

you can make it create an explosion when it hits the target instead of spawning a TNT

static plume
plucky lava
#

?