1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Help With on right click:

Discussion in 'Skript' started by HonestlyPanda, Apr 28, 2022.

Tags:
Thread Status:
Not open for further replies.
  1. HonestlyPanda

    HonestlyPanda Member

    Joined:
    May 19, 2021
    Messages:
    38
    Likes Received:
    0
    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 (Text):
    1. on place:
    2.     player is holding tnt named "&7[&4&lDeadly Tnt&7]":
    3.         set {_loc} to location of event-block
    4.         cancel event
    5.         wait 1 seconds
    6.         spawn 9 tnt at {_loc}


     
  2. Best Answer:
    Post #5 by Practice, Apr 29, 2022
  3. Hasloslabe

    Hasloslabe New Member

    Joined:
    Apr 27, 2022
    Messages:
    5
    Likes Received:
    0
    Code (Text):
    1. on place:
    2.     cancel event
    3.     if player's tool is tnt named "name":
    4.         set player's tool to air
    5.         set {_loc} to location of event-block #if this line dont work use event-place
    6.         wait 1 seconds
    7.         spawn 9 tnt at {_loc}
     
  4. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    This is better:
    Code (Text):
    1. on place:
    2.     cancel event
    3.     if player's tool is tnt named "name":
    4.         remove 1 of player's tool from player's tool
    5.         wait 1 seconds
    6.         spawn 9 tnt at location of event-block
     
  5. HonestlyPanda

    HonestlyPanda Member

    Joined:
    May 19, 2021
    Messages:
    38
    Likes Received:
    0
    doesn't work at all now. Not with 1, 2, or any amount
     
  6. Practice

    Practice Member

    Joined:
    Apr 23, 2022
    Messages:
    37
    Likes Received:
    1
    Code (Text):
    1. on place of tnt:
    2.     name of player's tool is "&7[&4&lDeadly Tnt&7]"
    3.     wait 1 second
    4.     spawn 9 primed tnt at event-block
     
  7. HonestlyPanda

    HonestlyPanda Member

    Joined:
    May 19, 2021
    Messages:
    38
    Likes Received:
    0
    Works! Thanks!!!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...