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!

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

auto gens

Discussion in 'Requests' started by TheCraft, Apr 20, 2019.

  1. TheCraft

    TheCraft Member

    Joined:
    Apr 20, 2019
    Messages:
    22
    Likes Received:
    0
    hey guys I wanna learn how to make auto gens like wool in diffrent colors that has radius that when u stand near them Its like 4$ a sec

    and when u break specific block like emerald block it gives u money
    like 10$
     
  2. LhommeFrancais

    Joined:
    Mar 29, 2019
    Messages:
    15
    Likes Received:
    1
    Emerald Block Skript:

    Code (Text):
    1. on break of emerald block:
    2.     add 10 to player's balance
    3.     send "&a&l+ $10" to player
    Auto gen skript:

    Code (Text):
    1. on join:
    2.     wait 1 tick
    3.     while player is alive:
    4.         if blocks in radius 10 of player contains red wool:
    5.             add 4 to player's balance
    6.             send "&a&l+ $4" to player
    7.             wait 1 second
     
  3. Gino

    Gino Member

    Joined:
    Apr 10, 2017
    Messages:
    24
    Likes Received:
    4
    Emerald block disappeares after breaking
     
  4. LhommeFrancais

    Joined:
    Mar 29, 2019
    Messages:
    15
    Likes Received:
    1
    Code (Text):
    1. on break of emerald block:
    2.     set {_loc} to location of block
    3.     set block at {_loc} to emerald block
    4.     add 10 to player's balance
    5.     send "&a&l+ $10" to player
    6.    
    OR

    Code (Text):
    1. on break of emerald block:
    2.     cancel event
    3.     add 10 to player's balance
    4.     send "&a&l+ $10" to player
     
  5. Gino

    Gino Member

    Joined:
    Apr 10, 2017
    Messages:
    24
    Likes Received:
    4
    on break:
    block is emerald block named "test"
    cancel event
    add 10 to player's balance
    send "&a&l+ $10" to player

    I only want to let it break when it's named test, but when i break it now it will break with or without name
     
  6. Runakai

    Moderator Supporter

    Joined:
    Apr 27, 2018
    Messages:
    497
    Likes Received:
    31
    well that's because a block cannot have a name. set a var inluding the location to true when placing the block
     
  7. bigboybigboi

    bigboybigboi New Member

    Joined:
    Nov 26, 2019
    Messages:
    8
    Likes Received:
    0

    UH can u write that? I am interested as well.
     

Share This Page

Loading...