Jump to content

Skript Help Needed


TKChino

Recommended Posts

New to skripting, really new. Read through guides and things to help me understand it a little better, but need major help lol.

Been playing around with skript a little which you will see in both the codes i put in.

I can turn cobblestone to bedrock and back again. Not a problem.

 

on break:
    if player's world is "ul_RPGWorld":
        if event-block is cobblestone:
            chance of 5%:
                give 2 cobblestone to player
        if event-block is cobblestone:
            clear drops
            give 1 xp to player
            give 1 of event-block to player
            set event-block  to bedrock
            wait 10 seconds
            set event-block to cobblestone

 

I can make stone turn to cobble then to bedrock and back to stone. Not a problem, but i dont think it works like i think it does.

on break:
    if event-block is stone:
        set event-block to cobblestone
        wait 60 ticks
        set event-block to stone
on break:
    if event-block is cobblestone:
        set event-block to bedrock
        wait 60 ticks
        set event-block to stone

The problem is the block i mined first doesnt go back to what it was to begin with, so if it was cobble to begin with once i mine it it turns to stone instead of cobblestone again.

Now when i do the same thing with coal ore, it sets back to either stone or cobblestone never back to coal ore.

What am i doing wrong on it if you can help me out?

 

 

Link to comment
Share on other sites

On 7/26/2021 at 3:58 PM, FlapKakker said:

You might just want to change stone to cobblestone in the last line of code?

On that one i want it to start as stone, change to cobble, then to bedrock, then back to its starting block (again dont think it works poperly because the placed cobble changes to stone in the end too lol)

Same when i do coal, it always ends back as stone no matter what, unless i do what you said, stone - bedrock back to stone again, or coal bedrock back to coal again.

 

Link to comment
Share on other sites

on break:
    if player's world is "ul_RPGWorld":
        if event-block is stone:
            give player event-block
            set event-block to cobblestone
            wait 60 ticks
            set event-block to stone
on break:
    if player's world is "ul_RPGWorld":
        if event-block is cobblestone:
            give player event-block
            set event-block to bedrock
            wait 60 ticks
            set event-block to stone

this should work not tested

Edited by ___Rodney_RWR___
uwu

-------------------------------------------------------------------

NO RANK ALL THE WAY

---------------------------------------------------------------------

play.koolkidzmc.com (Velocity + Pufferfish FTW)
discord.koolkidzmc.com

Spoiler

/_(•v•)_7

image_2021-07-26_104856.png.7740cf6322d3693f332894c1e8485060.png


image_2021-07-26_104457.png

pogies.PNG

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...