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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Custom Ore

Discussion in 'Skript' started by ApplePenChicken, Aug 27, 2021.

Thread Status:
Not open for further replies.
  1. ApplePenChicken

    Joined:
    Aug 8, 2021
    Messages:
    24
    Likes Received:
    0
    on any move:
    loop all blocks in radius 100 around the player:
    if loop-block is redstone ore or coal ore or iron ore:
    if loop-block's y coordinate is below 3:
    set the loop-block to nether brick
    add the loop-block's location to {darkb::*}
    on break of nether brick:
    if the event-block is in {darkb::*}:
    clear the drops
    remove the event-block's location from {darkb::*}
    set {witherfrag} to glowing nether brick named "Wither Fragment"
    drop {witherfrag} at event-block
    when I reload the skript it closes the server.
    help pls
    thanks.
     
  2. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    Boy, I have two things to say:
    1. Try to avoid the use of 'on any move' at all times.
    2. Looking blocks in a radius of 100 will cause lag to your server, especially when using it with an movement event.
    I suggest you to find another way to write this code.
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...