How do you make upgradable ores-gen?

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

    Now, what are you waiting for? Join the community now!

BrownMee

Active Member
Apr 16, 2018
126
6
18
Im not sure how to create a skyblock cobble gen . Can be also upgradable. Can anyone help me with this?
[doublepost=1528905617,1528902032][/doublepost]on break:
if event-block is cobblestone:
loop blocks in radius 1 around the event-block:
if loop-block is lava:
send "s"
wait 1 ticks
set block at event-block to coal ore

sometimes work but sometimes doesn't :emoji_frowning:
 
code_language.skript:
on form:
    if id of block is 4:
        set block to coal ore
What if making it upgradable? This is what I came up

code_language.skript:
on block form:
    event-block is 4:0:
        loop players in radius 1 around the event-block:
            wait 1 ticks
            {coal1.%loop-players%} is true:
                chance of 2.0%:
                    set block at event-block to coal ore
                    stop

But it's not efficient as it loops all players in server so lets say:

Player A has the {coal1.%loop-players%} variable
Player B has the {coal3.%loop-players%} variable

It will form coal ore chance higher since it loops all players.