Solved Help With on right click:

  • 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.

HonestlyPanda

Member
May 19, 2021
38
0
6
23
I'm making a Mega Tnt but it doesn't work... how do I make it work with more than 2 tnt??? Heres code:
Code:
on place:
    player is holding tnt named "&7[&4&lDeadly Tnt&7]":
        set {_loc} to location of event-block
        cancel event
        wait 1 seconds
        spawn 9 tnt at {_loc}
 
Code:
on place:
    cancel event
    if player's tool is tnt named "name":
        set player's tool to air
        set {_loc} to location of event-block #if this line dont work use event-place
        wait 1 seconds
        spawn 9 tnt at {_loc}
 
Code:
on place:
    cancel event
    if player's tool is tnt named "name":
        set player's tool to air
        set {_loc} to location of event-block #if this line dont work use event-place
        wait 1 seconds
        spawn 9 tnt at {_loc}

This is better:
Code:
on place:
    cancel event
    if player's tool is tnt named "name":
        remove 1 of player's tool from player's tool
        wait 1 seconds
        spawn 9 tnt at location of event-block
 
Code:
on place of tnt:
    name of player's tool is "&7[&4&lDeadly Tnt&7]"
    wait 1 second
    spawn 9 primed tnt at event-block
 
Status
Not open for further replies.