auto gens

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

TheCraft

Member
Apr 20, 2019
22
0
1
20
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$
 
Emerald Block Skript:

Code:
on break of emerald block:
    add 10 to player's balance
    send "&a&l+ $10" to player

Auto gen skript:

Code:
on join:
    wait 1 tick
    while player is alive:
        if blocks in radius 10 of player contains red wool:
            add 4 to player's balance
            send "&a&l+ $4" to player
            wait 1 second
 
Emerald Block Skript:

Code:
on break of emerald block:
    add 10 to player's balance
    send "&a&l+ $10" to player

Auto gen skript:

Code:
on join:
    wait 1 tick
    while player is alive:
        if blocks in radius 10 of player contains red wool:
            add 4 to player's balance
            send "&a&l+ $4" to player
            wait 1 second
Emerald block disappeares after breaking
 
Code:
on break of emerald block:
    set {_loc} to location of block
    set block at {_loc} to emerald block
    add 10 to player's balance
    send "&a&l+ $10" to player

OR

Code:
on break of emerald block:
    cancel event
    add 10 to player's balance
    send "&a&l+ $10" to player

 
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
 
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
well that's because a block cannot have a name. set a var inluding the location to true when placing the block