Solved Ores from water and lava

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Feb 24, 2017
191
7
0
23
foroendertheth.foroactivo.com
Hello, I'm trying to do like when lava and water create stone or cobblestone. like a chance to generate ores but I don't know the event or the addon I need for this. This Is what I have so far.

Code:
on break of stone or cobblestone:
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to diamond ore
            stop trigger
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to emerald ore
            stop trigger
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to lapis ore
            stop trigger
    chance of 5%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to coal ore
            stop trigger
    chance of 3%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to iron ore
            stop trigger
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to gold ore
            stop trigger
    chance of 2%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to redstone ore
            stop trigger
            set event-block to diamond ore
 
Last edited:
Hello, I'm trying to do like when lava and water create stone or cobblestone. like a chance to generate ores but I don't know the event or the addon I need for this. This Is what I have so far.

Code:
on break of stone or cobblestone:
    chance of 50%:
        chance of 1%:
            set event-block to diamond ore
Try something like this:
code_language.skript:
on break:
    event-block is stone:
        set event-block to air
        chance of 1%:
            drop 1 diamond at event-player's location
        chance of 99%:
            drop 1 cobblestone at event-player's location
I have not tried it because I'm not at home, so I do not make sure it's okay.
 
Hello, I'm trying to do like when lava and water create stone or cobblestone. like a chance to generate ores but I don't know the event or the addon I need for this. This Is what I have so far.

Code:
on break of stone or cobblestone:
    chance of 50%:
        chance of 1%:
            set event-block to diamond ore
I think its on block form or on block growth
 
I think its on block form or on block growth
yeah
[doublepost=1555246881,1555246806][/doublepost]Now I have this and is working but I want this to happen when lava and water create stone or cobblestone
Code:
on break of stone or cobblestone:
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to diamond ore
            stop trigger
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to emerald ore
            stop trigger
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to lapis ore
            stop trigger
    chance of 5%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to coal ore
            stop trigger
    chance of 3%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to iron ore
            stop trigger
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to gold ore
            stop trigger
    chance of 2%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to redstone ore
            stop trigger
 
yeah
[doublepost=1555246881,1555246806][/doublepost]Now I have this and is working but I want this to happen when lava and water create stone or cobblestone
Code:
on break of stone or cobblestone:
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to diamond ore
            stop trigger
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to emerald ore
            stop trigger
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to lapis ore
            stop trigger
    chance of 5%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to coal ore
            stop trigger
    chance of 3%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to iron ore
            stop trigger
    chance of 1%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to gold ore
            stop trigger
    chance of 2%:
        wait 2 seconds
        if event-block is stone or cobblestone:
            set event-block to redstone ore
            stop trigger
Try some things out with on block form/growth
 
Code:
on block form of cobble:
    set block at event-block to obisidian
 
What isn't working?
Does it give any parsing errors?
Does it give any console errors?
Add debug messages to see if the event is called
When the cobblestone creates just dont create ores
[doublepost=1555333259,1555327862][/doublepost]
When the cobblestone creates just dont create ores
no console errors
Code:
on block form of cobble:
    set block at event-block to obisidian
hey the problem was you tell me to use on block form of cobble and is on form of cobblestone
 
Status
Not open for further replies.