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.

ID & Cancel event-block

Discussion in 'Skript' started by Mads Bille, Oct 16, 2018.

Thread Status:
Not open for further replies.
  1. Mads Bille

    Mads Bille Member

    Joined:
    Oct 15, 2018
    Messages:
    10
    Likes Received:
    0
    Hey, I have got help to make so people can't set a green glass next to a cobblestone wall, but when they do will it make the money machine I have coded it to. (First section) How can I fix it so it can't set the glass block and don't make the money machine? :3 (And how can I make a ID or something to it so the player/uuid can have more then 1? So the first machine is "Money machine #1" Next #2 and #3)

    Thx. <3



    Code (Skript):
    1. on block place:
    2.     if player can build at event-block:
    3.         if player is holding locked chest:5 with name "&a&lPENGE MASKINE BASIC":
    4.             remove locked chest:5 with name "&a&lPENGE MASKINE BASIC" from player's inventory
    5.             wait 1 second
    6.             set {Basic.minmine.%uuid of player%} to 1
    7.             set {Basic.ejer.%uuid of player%} to true
    8.             set {Basic.%event-block%.%uuid of player%} to false
    9.             set event-block to cobblestone wall        
    10.             wait 5 ticks
    11.             set block above event-block to locked chest:5
    12.             wait 5 ticks
    13.             loop blocks in radius 1 of event-block:
    14.                 if loop-block is locked chest:5:
    15.                     set block above loop-block to cobblestone wall        
    16.             Message "&a&lPENGE MASKINE&8: &7Maskinen er i gang, så nu vil du tjente penge i mens du er online."
    17.             loop blocks in radius 2 of event-block:
    18.                 if loop-block is locked chest:5:
    19.                     set {Basic.%loop-block%.%uuid of player%} to false
    20.  
    21. on block place:
    22.     if player can build at event-block:
    23.         loop all blocks in radius 1 of event-block:
    24.             if loop-block is locked chest:5:
    25.                 cancel event
    26.                 stop loop
     
  2. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    715
    Likes Received:
    53
    Please use a different translator, I have no idea what you want.
     
  3. Mads Bille

    Mads Bille Member

    Joined:
    Oct 15, 2018
    Messages:
    10
    Likes Received:
    0
    Hey, I have got help to make so people can't set a green glass next to a cobblestone wall, but when they do will it make the money machine I have coded will it override it. (First section) How can I fix it so it can't set the glass block (And how can I make a ID or something to it so the player/uuid can have more then 1? So the first machine is "Money machine #1" Next "Money machine #2" and "Money machine #3)

    Better?
     
  4. Scholler

    Scholler Active Member

    Joined:
    Aug 6, 2018
    Messages:
    130
    Likes Received:
    9
    So.. When players' placing a green glass next to cobblestone the script make a.. money machine? And you just want to not make the money machine but don't place the glass? what
    Code (Skript):
    1. on place of green glass:
    2.       cancel event
    I can't understand your code because I don't know what you want.. and.. what is "cobblestone wall" isn't it just cobblestone?
     
  5. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    107
    Medals:
    https://minecraft.gamepedia.com/Cobblestone_Wall
     
  6. Scholler

    Scholler Active Member

    Joined:
    Aug 6, 2018
    Messages:
    130
    Likes Received:
    9
    • Funny Funny x 1
  7. Mads Bille

    Mads Bille Member

    Joined:
    Oct 15, 2018
    Messages:
    10
    Likes Received:
    0

    When I set a glass block on the floor/ ground it makes a money machine. But when you set a new one next to the first money machine it gets buggy so I need a script where u can't place a glass block next to a Cobblestone wall?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...