Drop ingot instead of ore, I don't know how to do it

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

Aidanete

Active Member
Apr 11, 2017
139
10
0
Hello, I'm trying to make that an iron and a gold ore, instead of dropping me the ore, drops the ingot.
Here is the code that I don't know how to make it work.
code_language.skript:
on break of gold ore:
    player is in world "Skywars":
        cancel event
        set the block at event-block location to air
        drop gold ingot at event-block location
on break of iron ore:
    player is in world "Skywars":
        cancel event
        set the block at event-block location to air
        drop iron ingot at event-block location
on break of emerald ore:
    player is in world "Skywars":
        cancel event
        set the block at event-block location to air

Please, help!
 
Hello, I'm trying to make that an iron and a gold ore, instead of dropping me the ore, drops the ingot.
Here is the code that I don't know how to make it work.
code_language.skript:
on break of gold ore:
    player is in world "Skywars":
        cancel event
        set the block at event-block location to air
        drop gold ingot at event-block location
on break of iron ore:
    player is in world "Skywars":
        cancel event
        set the block at event-block location to air
        drop iron ingot at event-block location
on break of emerald ore:
    player is in world "Skywars":
        cancel event
        set the block at event-block location to air

Please, help!
Idk if it works but try something like 'clear drops' orso
 
I tried this also, but the "clear drops" effect only works with death events...
code_language.skript:
on break of gold ore:
    player is in world "Skywars":
        clear drops
        drop gold ingot at location of event-block
on break of iron ore:
    player is in world "Skywars":
        clear drops
        drop iron ingot at location of event-block
on break of emerald ore:
    player is in world "Skywars":
        clear drops
 
Hello, I'm trying to make that an iron and a gold ore, instead of dropping me the ore, drops the ingot.
Here is the code that I don't know how to make it work.
code_language.skript:
on break of gold ore:
    player is in world "Skywars":
        cancel event
        set the block at event-block location to air
        drop gold ingot at event-block location
on break of iron ore:
    player is in world "Skywars":
        cancel event
        set the block at event-block location to air
        drop iron ingot at event-block location
on break of emerald ore:
    player is in world "Skywars":
        cancel event
        set the block at event-block location to air

Please, help!
Try maybe adding a delay? Like
code_language.skript:
on mine:
    if player is in world("world"):
        cancel event
        wait 1 tick
Btw, what doesnt work? The drops?
 
Try maybe adding a delay? Like
code_language.skript:
on mine:
    if player is in world("world"):
        cancel event
        wait 1 tick
Btw, what doesnt work? The drops?

The skript don't understand the condition/effect of "Set the block at event-block location to air"
The skript don't understand "event-block" because is not a direction.
[doublepost=1531218798,1531218065][/doublepost]Ok, I find the solution myself.

The error was that skript can't understand "event-block location", the fix is changing it with "location of event-block"
 
The skript don't understand the condition/effect of "Set the block at event-block location to air"
The skript don't understand "event-block" because is not a direction.
[doublepost=1531218798,1531218065][/doublepost]Ok, I find the solution myself.

The error was that skript can't understand "event-block location", the fix is changing it with "location of event-block"
Or you can use block at event-block
 
Try
code_language.skript:
on break of gold ore:
    player's game mode is survival
    player is in world "wurld":
        cancel drops
        drop (a random integer between 1 and 3) of gold ingot at location of event-block
 
code_language.skript:
on break of gold ore:
    wait 1 tick
    if player's gamemode is survival:
        loop dropped items in radius 0.75 of event-location:
            delete loop-value
        drop gold ingot
 
Status
Not open for further replies.