Skocz do zawartości
  • 0

Zedytuje mi to ktoś?


PiTeKLive

Pytanie

Chciałbym żeby można było wyłączać wszystkie bloki osobno jak się kliknie na nie

 

on mine of stone:
    if player has permissions "drop.on":
        chance of 23%:
            give 1 iron block to the player
        chance of 10%:
            give 1 gold block to the player
        chance of 24%:
            give 1 diamond block to the player
        chance of 1%:
            give 1 emerald block to the player
        chance of 18%:
            give 1 obsidian to the player
        chance of 10%:
            give 1 ender pearl to the player
        chance of 11%:
            give 1 bookshelf to the player
        chance of 19%:
            give 1 tnt to the player
        chance of 18%:
            give 1 sand to the player
        chance of 17%:
            give 1 gunpowder to the player
        chance of 25%:
            give 1 redstone block to the player
        chance of 13%:
            give 1 5 to the player
        chance of 1%:
            give 1 322 to the player
        chance of 28%:
            give 1 coal block to the player
        chance of 14%:
            give 1 string to the player
        chance of 15%:
            give 1 slimeball to the player
        chance of 27%:
            give 1 apple to the player
        chance of 200%:
            give 100 exp to the player

command /drop:    
    trigger:        
        open chest with 4 rows named "&8» &6Drop" to player        
        wait 2 tick        
        format slot 0 of player with 1 of emerald block named "&8» &aSzmaragd" with lore "&8» &6Szansa&8: &61 &7Procent" to close
        format slot 1 of player with 1 of gold block named "&8» &eZloto" with lore "&8» &6Szansa&8: &610 &7Procent" to close
        format slot 2 of player with 1 of diamond block named "&8» &bDiament" with lore "&8» &6Szansa&8: &624 &7Procent"  to close
        format slot 3 of player with 1 of iron block named "&8» &fZelazo" with lore "&8» &6Szansa&8: &623 &7Procent" to close
        format slot 4 of player with 1 of obsidian named "&8» &7Obsydian" with lore "&8» &6Szansa&8: &618 &7Procent" to close
        format slot 5 of player with 1 of 368 named "&8» &5Ender Perla" with lore "&8» &6Szansa&8: &610 &7Procent" to close
        format slot 6 of player with 1 of bookshelf named "&8» &6Biblioteczki" with lore "&8» &6Szansa&8: &619 &7Procent" to close
        format slot 7 of player with 1 of tnt named "&8» &cTNT" with lore "&8» &6Szansa&8: &619 &7Procent" to close
        format slot 8 of player with 1 of sand named "&8» &fPiasek" with lore "&8» &6Szansa&8: &618 &7Procent" to close
        format slot 9 of player with 1 of gunpowder named "&8» &7Proch" with lore "&8» &6Szansa&8: &617 &7Procent" to close
        format slot 10 of player with 1 of redstone block named "&8» &4Redstone" with lore "&8» &6Szansa&8: &625 &7Procent" to close
        format slot 11 of player with 1 of 322 named "&8» &eReffy" with lore "&8» &6Szansa&8: &61 &7Procent" to close
        format slot 12 of player with 1 of coal block named "&8» &0Wegiel" with lore "&8» &6Szansa&8: &628 &7Procent" to close
        format slot 13 of player with 1 of string named "&8» &fNici" with lore "&8» &6Szansa&8: &614 &7Procent" to close
        format slot 14 of player with 1 of slimeball named "&8» &aSlimeball" with lore "&8» &6Szansa&8: &615 &7Procent" to close
        format slot 15 of player with 1 of 5 named "&8» &3Drewno" with lore "&8» &6Szansa&8: &613 &7Procent" to close
        format slot 16 of player with 1 of apple named "&8» &4Jablko" with lore "&8» &6Szansa&8: &627 &7Procent" to close
        format slot 26 of player with 1 of 384 named "&8» &7Exp&8: &6100" with lore "&8» &6Szansa&8: &6200 &7Procent" to close
        format slot 34 of player with 1 of 35:14 named "&8» &cWylacz Drop" to close then run "lord user permission remove %player% drop.on"
        format slot 35 of player with 1 of 35:5 named "&8» &aWlacz Drop" to close then run "lord user permission add %player% drop.on"

on mine of iron ore:
    cancel event
    set block to air
       
on mine of gold ore:
    cancel event
    set block to air
       
on mine of emerald ore:
    cancel event
    set block to air
       
on mine of diamond ore:
    cancel event
    set block to air
 
on mine of coal ore:
    cancel event
    set block to air
       
on mine of redstone ore:
    cancel event
    set block to air

Odnośnik do komentarza
Udostępnij na innych stronach

13 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
variables:
    {drop::zelazo::%player%} = "&aWlaczony"
    {drop::zloto::%player%} = "&aWlaczony"
    {drop::diament::%player%} = "&aWlaczony"
    {drop::szmaragd::%player%} = "&aWlaczony"
    {drop::obsydian::%player%} = "&aWlaczony"
    {drop::perla::%player%} = "&aWlaczony"
    {drop::ksiazka::%player%} = "&aWlaczony"
    {drop::tnt::%player%} = "&aWlaczony"
    {drop::piasek::%player%} = "&aWlaczony"
    {drop::proch::%player%} = "&aWlaczony"
    {drop::redstone::%player%} = "&aWlaczony"
    {drop::drewno::%player%} = "&aWlaczony"
    {drop::refil::%player%} = "&aWlaczony"
    {drop::wegiel::%player%} = "&aWlaczony"
    {drop::nic::%player%} = "&aWlaczony"
    {drop::slimeball::%player%} = "&aWlaczony"
    {drop::jablko::%player%} = "&aWlaczony"



on mine of stone:
    if {drop::zelazo::%player%} is "&aWlaczony"
        chance of 23%:
            give 1 iron block to the player
    if {drop::zloto::%player%} is "&aWlaczony"
        chance of 10%:
            give 1 gold block to the player
    if {drop::diament::%player%} is "&aWlaczony"
        chance of 24%:
            give 1 diamond block to the player
    if {drop::szmaragd::%player%} is "&aWlaczony"
        chance of 1%:
            give 1 emerald block to the player
    if {drop::obsydian::%player%} is "&aWlaczony"
        chance of 18%:
            give 1 obsidian to the player
    if {drop::perla::%player%} is "&aWlaczony"
        chance of 10%:
            give 1 ender pearl to the player
    if {drop::ksiazka::%player%} is "&aWlaczony"
        chance of 11%:
            give 1 bookshelf to the player
    if {drop::tnt::%player%} is "&aWlaczony"
        chance of 19%:
            give 1 tnt to the player
    if {drop::piasek::%player%} is "&aWlaczony"
        chance of 18%:
            give 1 sand to the player
    if {drop::proch::%player%} is "&aWlaczony"
        chance of 17%:
            give 1 gunpowder to the player
    if {drop::redstone::%player%} is "&aWlaczony"
        chance of 25%:
            give 1 redstone block to the player
    if {drop::drewno::%player%} is "&aWlaczony"
        chance of 13%:
            give 1 17:0 to the player
    if {drop::refil::%player%} is "&aWlaczony"
        chance of 1%:
            give 1 322:0 to the player
    if {drop::wegiel::%player%} is "&aWlaczony"
        chance of 28%:
            give 1 coal block to the player
    if {drop::nic::%player%} is "&aWlaczony"
        chance of 14%:
            give 1 string to the player
    if {drop::slimeball::%player%} is "&aWlaczony"
        chance of 15%:
            give 1 slimeball to the player
    if {drop::jablko::%player%} is "&aWlaczony"
        chance of 27%:
            give 1 apple to the player
        chance of 200%:
            give 100 exp to the player

command /drop:    
    trigger:        
        open chest with 4 rows named "&8» &6Drop" to player        
        wait 2 tick        
        format slot 0 of player with 1 of emerald block named "&8» &aSzmaragd" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::szmaragd::%player%}%" to close then run [execute player command "dropp szmaragd"]
        format slot 1 of player with 1 of gold block named "&8» &eZloto" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::zloto::%player%}%" to close then run [execute player command "dropp zloto"]
        format slot 2 of player with 1 of diamond block named "&8» &bDiament" with lore "&8» &6Szansa&8: &624%%||&6Drop &8» %{drop::diament::%player%}%"  to close then run [execute player command "dropp diament"]
        format slot 3 of player with 1 of iron block named "&8» &fZelazo" with lore "&8» &6Szansa&8: &623%%||&6Drop &8» %{drop::zelazo::%player%}%" to close then run [execute player command "dropp zelazo"]
        format slot 4 of player with 1 of obsidian named "&8» &7Obsydian" with lore "&8» &6Szansa&8: &618%%||&6Drop &8» %{drop::obsydian::%player%}%" to close then run [execute player command "dropp obsydian"]
        format slot 5 of player with 1 of 368 named "&8» &5Ender Perla" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::perla::%player%}%" to close then run [execute player command "dropp perla"]
        format slot 6 of player with 1 of bookshelf named "&8» &6Biblioteczki" with lore "&8» &6Szansa&8: &619%%||&6Drop &8» %{drop::ksiazka::%player%}%" to close then run [execute player command "dropp ksiazka"]
        format slot 7 of player with 1 of tnt named "&8» &cTNT" with lore "&8» &6Szansa&8: &619%%||&6Drop &8» %{drop::tnt::%player%}%" to close then run [execute player command "dropp tnt"]
        format slot 8 of player with 1 of sand named "&8» &fPiasek" with lore "&8» &6Szansa&8: &618%%||&6Drop &8» %{drop::piasek::%player%}%" to close then run [execute player command "dropp piasek"]
        format slot 9 of player with 1 of gunpowder named "&8» &7Proch" with lore "&8» &6Szansa&8: &617%%||&6Drop &8» %{drop::proch::%player%}%" to close then run [execute player command "dropp proch"]
        format slot 10 of player with 1 of redstone block named "&8» &4Redstone" with lore "&8» &6Szansa&8: &625%%||&6Drop &8» %{drop::redstone::%player%}%" to close then run [execute player command "dropp redstone"]
        format slot 11 of player with 1 of 322:0 named "&8» &eReffy" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::refil::%player%}%" to close then run [execute player command "dropp refil"]
        format slot 12 of player with 1 of coal block named "&8» &0Wegiel" with lore "&8» &6Szansa&8: &628%%||&6Drop &8» %{drop::wegiel::%player%}%" to close then run [execute player command "dropp wegiel"]
        format slot 13 of player with 1 of string named "&8» &fNici" with lore "&8» &6Szansa&8: &614%%||&6Drop &8» %{drop::nic::%player%}%" to close then run [execute player command "dropp nic"]
        format slot 14 of player with 1 of slimeball named "&8» &aSlimeball" with lore "&8» &6Szansa&8: &615%%||&6Drop &8» %{drop::slimeball::%player%}%" to close then run [execute player command "dropp slimeball"]
        format slot 15 of player with 1 of 5 named "&8» &3Drewno" with lore "&8» &6Szansa&8: &613%%||&6Drop &8» %{drop::drewno::%player%}%" to close then run [execute player command "dropp drewno"]
        format slot 16 of player with 1 of apple named "&8» &4Jablko" with lore "&8» &6Szansa&8: &627%%||&6Drop &8» %{drop::jablko::%player%}%" to close then run [execute player command "dropp jablko"]
        format slot 26 of player with 1 of 384 named "&8» &7Exp&8: &6100" with lore "&8» &6Szansa&8: &6200%%" to be unstealable
        format slot 34 of player with 1 of 35:14 named "&8» &cWylacz Wszystko" to close then run [execute player command "dropp wszystkooff"]
        format slot 35 of player with 1 of 35:5 named "&8» &aWlacz Wszystko" to close then run [execute player command "dropp wszystkoon"]

command /dropp [<text>]:
    trigger:
        if arg is "wszystkooff" or "wszystkoon":
            if arg is "wszystkooff":
                set {drop::szmaragd::%player%} to "&cWylaczony"
                set {drop::zloto::%player%} to "&cWylaczony"
                set {drop::diament::%player%} to "&cWylaczony"
                set {drop::zelazo::%player%} to "&cWylaczony"
                set {drop::obsydian::%player%} to "&cWylaczony"
                set {drop::perla::%player%} to "&cWylaczony"
                set {drop::ksiazka::%player%} to "&cWylaczony"
                set {drop::tnt::%player%} to "&cWylaczony"
                set {drop::piasek::%player%} to "&cWylaczony"
                set {drop::proch::%player%} to "&cWylaczony"
                set {drop::redstone::%player%} to "&cWylaczony"
                set {drop::refil::%player%} to "&cWylaczony"
                set {drop::wegiel::%player%} to "&cWylaczony"
                set {drop::nic::%player%} to "&cWylaczony"
                set {drop::slimeball::%player%} to "&cWylaczony"
                set {drop::drewno::%player%} to "&cWylaczony"
                set {drop::jablko::%player%} to "&cWylaczony"
            if arg is "wszystkoon":
                set {drop::szmaragd::%player%} to "&aWlaczony"
                set {drop::zloto::%player%} to "&aWlaczony"
                set {drop::diament::%player%} to "&aWlaczony"
                set {drop::zelazo::%player%} to "&aWlaczony"
                set {drop::obsydian::%player%} to "&aWlaczony"
                set {drop::perla::%player%} to "&aWlaczony"
                set {drop::ksiazka::%player%} to "&aWlaczony"
                set {drop::tnt::%player%} to "&aWlaczony"
                set {drop::piasek::%player%} to "&aWlaczony"
                set {drop::proch::%player%} to "&aWlaczony"
                set {drop::redstone::%player%} to "&aWlaczony"
                set {drop::refil::%player%} to "&aWlaczony"
                set {drop::wegiel::%player%} to "&aWlaczony"
                set {drop::nic::%player%} to "&aWlaczony"
                set {drop::slimeball::%player%} to "&aWlaczony"
                set {drop::drewno::%player%} to "&aWlaczony"
                set {drop::jablko::%player%} to "&aWlaczony"
        else:
            if {drop::%arg%::%player%} is set:
                if {drop::%arg%::%player%} is "&aWlaczony":
                    set {drop::%arg%::%player%} to "&cWylaczony"
                    send "&cWylaczono drop"
                if {drop::%arg%::%player%} is "&cWylaczony":
                    set {drop::%arg%::%player%} to "&aWlaczony"
                    send "&aWlaczono drop"
on mine of iron ore:
    cancel event
    set block to air
       
on mine of gold ore:
    cancel event
    set block to air
       
on mine of emerald ore:
    cancel event
    set block to air
       
on mine of diamond ore:
    cancel event
    set block to air
 
on mine of coal ore:
    cancel event
    set block to air
       
on mine of redstone ore:
    cancel event
    set block to air

Prosz :) //Nie testowane

Edytowane przez kubastion
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Nie działa :(

sk reload drop
[13:07:31 INFO]: [Skript] Reloading drop.sk...
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 24: chance of 23%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 25: give 1 iron block to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 27: chance of 10%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 28: give 1 gold block to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 30: chance of 24%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 31: give 1 diamond block to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 33: chance of 1%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 34: give 1 emerald block to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 36: chance of 18%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 37: give 1 obsidian to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 39: chance of 10%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 40: give 1 ender pearl to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 42: chance of 11%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 43: give 1 bookshelf to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 45: chance of 19%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 46: give 1 tnt to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 48: chance of 18%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 49: give 1 sand to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 51: chance of 17%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 52: give 1 gunpowder to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 54: chance of 25%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 55: give 1 redstone block to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 57: chance of 13%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 58: give 1 17:0 to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 60: chance of 1%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 61: give 1 322:0 to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 63: chance of 28%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 64: give 1 coal block to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 66: chance of 14%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 67: give 1 string to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 69: chance of 15%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 70: give 1 slimeball to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 72: chance of 27%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 73: give 1 apple to the player')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 8 spaces (drop.sk, line 74: chance of 200%:')
[13:07:31 ERROR]: indentation error: expected 4 spaces, but found 12 spaces (drop.sk, line 75: give 100 exp to the player')
[13:07:31 ERROR]: 'if {drop::zelazo::%player%}' is not an entity type (drop.sk, line 23: if {drop::zelazo::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::zloto::%player%}' is not an entity type (drop.sk, line 26: if {drop::zloto::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::diament::%player%}' is not an entity type (drop.sk, line 29: if {drop::diament::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::szmaragd::%player%}' is not an entity type (drop.sk, line 32: if {drop::szmaragd::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::obsydian::%player%}' is not an entity type (drop.sk, line 35: if {drop::obsydian::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::perla::%player%}' is not an entity type (drop.sk, line 38: if {drop::perla::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::ksiazka::%player%}' is not an entity type (drop.sk, line 41: if {drop::ksiazka::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::tnt::%player%}' is not an entity type (drop.sk, line 44: if {drop::tnt::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::piasek::%player%}' is not an entity type (drop.sk, line 47: if {drop::piasek::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::proch::%player%}' is not an entity type (drop.sk, line 50: if {drop::proch::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::redstone::%player%}' is not an entity type (drop.sk, line 53: if {drop::redstone::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::drewno::%player%}' is not an entity type (drop.sk, line 56: if {drop::drewno::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::refil::%player%}' is not an entity type (drop.sk, line 59: if {drop::refil::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::wegiel::%player%}' is not an entity type (drop.sk, line 62: if {drop::wegiel::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::nic::%player%}' is not an entity type (drop.sk, line 65: if {drop::nic::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::slimeball::%player%}' is not an entity type (drop.sk, line 68: if {drop::slimeball::%player%} is "&aWlaczony"')
[13:07:31 ERROR]: 'if {drop::jablko::%player%}' is not an entity type (drop.sk, line 71: if {drop::jablko::%player%} is "&aWlaczony"')
[13:07:31 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '368' with e.g. 'ender pearl'. (drop.sk, line 86: format slot 5 of player with 1 of 368 named "&8» &5Ender Perla" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::perla::%player%}%" to close then run [execute player command "dropp perla"]')
[13:07:31 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '322:0' with e.g. 'golden apple item'. (drop.sk, line 92: format slot 11 of player with 1 of 322:0 named "&8» &eReffy" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::refil::%player%}%" to close then run [execute player command "dropp refil"]')
[13:07:31 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please crate an alias for '5' (WOOD) in aliases-english.sk or the script's aliases section and use that instead. (drop.sk, line 96: format slot 15 of player with 1 of 5 named "&8» &3Drewno" with lore "&8» &6Szansa&8: &613%%||&6Drop &8» %{drop::drewno::%player%}%" to close then run [execute player command "dropp drewno"]')
[13:07:31 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '384' with e.g. 'bottle o' enchanting'. (drop.sk, line 98: format slot 26 of player with 1 of 384 named "&8» &7Exp&8: &6100" with lore "&8» &6Szansa&8: &6200%%" to be unstealable')
[13:07:31 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '35:14' with e.g. 'red wool'. (drop.sk, line 99: format slot 34 of player with 1 of 35:14 named "&8» &cWylacz Wszystko" to close then run [execute player command "dropp wszystkooff"]')
[13:07:31 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '35:5' with e.g. 'light green wool'. (drop.sk, line 100: format slot 35 of player with 1 of 35:5 named "&8» &aWlacz Wszystko" to close then run [execute player command "dropp wszystkoon"]')
[13:07:32 INFO]: [Skript] Encountered 53 errors while reloading drop.sk!
Edytowane przez PiTeKLive
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
variables:
    {drop::zelazo::%player%} = "&aWlaczony"
    {drop::zloto::%player%} = "&aWlaczony"
    {drop::diament::%player%} = "&aWlaczony"
    {drop::szmaragd::%player%} = "&aWlaczony"
    {drop::obsydian::%player%} = "&aWlaczony"
    {drop::perla::%player%} = "&aWlaczony"
    {drop::ksiazka::%player%} = "&aWlaczony"
    {drop::tnt::%player%} = "&aWlaczony"
    {drop::piasek::%player%} = "&aWlaczony"
    {drop::proch::%player%} = "&aWlaczony"
    {drop::redstone::%player%} = "&aWlaczony"
    {drop::drewno::%player%} = "&aWlaczony"
    {drop::refil::%player%} = "&aWlaczony"
    {drop::wegiel::%player%} = "&aWlaczony"
    {drop::nic::%player%} = "&aWlaczony"
    {drop::slimeball::%player%} = "&aWlaczony"
    {drop::jablko::%player%} = "&aWlaczony"



on mine of stone:
    if {drop::zelazo::%player%} is "&aWlaczony":
        chance of 23%:
            give 1 iron block to the player
    if {drop::zloto::%player%} is "&aWlaczony":
        chance of 10%:
            give 1 gold block to the player
    if {drop::diament::%player%} is "&aWlaczony":
        chance of 24%:
            give 1 diamond block to the player
    if {drop::szmaragd::%player%} is "&aWlaczony":
        chance of 1%:
            give 1 emerald block to the player
    if {drop::obsydian::%player%} is "&aWlaczony":
        chance of 18%:
            give 1 obsidian to the player
    if {drop::perla::%player%} is "&aWlaczony":
        chance of 10%:
            give 1 ender pearl to the player
    if {drop::ksiazka::%player%} is "&aWlaczony":
        chance of 11%:
            give 1 bookshelf to the player
    if {drop::tnt::%player%} is "&aWlaczony":
        chance of 19%:
            give 1 tnt to the player
    if {drop::piasek::%player%} is "&aWlaczony":
        chance of 18%:
            give 1 sand to the player
    if {drop::proch::%player%} is "&aWlaczony":
        chance of 17%:
            give 1 gunpowder to the player
    if {drop::redstone::%player%} is "&aWlaczony":
        chance of 25%:
            give 1 redstone block to the player
    if {drop::drewno::%player%} is "&aWlaczony":
        chance of 13%:
            give 1 17:0 to the player
    if {drop::refil::%player%} is "&aWlaczony":
        chance of 1%:
            give 1 322:0 to the player
    if {drop::wegiel::%player%} is "&aWlaczony":
        chance of 28%:
            give 1 coal block to the player
    if {drop::nic::%player%} is "&aWlaczony":
        chance of 14%:
            give 1 string to the player
    if {drop::slimeball::%player%} is "&aWlaczony":
        chance of 15%:
            give 1 slimeball to the player
    if {drop::jablko::%player%} is "&aWlaczony":
        chance of 27%:
            give 1 apple to the player
    chance of 200%:
        give 100 exp to the player

command /drop:    
    trigger:        
        open chest with 4 rows named "&8» &6Drop" to player        
        wait 2 tick        
        format slot 0 of player with 1 of emerald block named "&8» &aSzmaragd" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::szmaragd::%player%}%" to close then run [execute player command "dropp szmaragd"]
        format slot 1 of player with 1 of gold block named "&8» &eZloto" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::zloto::%player%}%" to close then run [execute player command "dropp zloto"]
        format slot 2 of player with 1 of diamond block named "&8» &bDiament" with lore "&8» &6Szansa&8: &624%%||&6Drop &8» %{drop::diament::%player%}%"  to close then run [execute player command "dropp diament"]
        format slot 3 of player with 1 of iron block named "&8» &fZelazo" with lore "&8» &6Szansa&8: &623%%||&6Drop &8» %{drop::zelazo::%player%}%" to close then run [execute player command "dropp zelazo"]
        format slot 4 of player with 1 of obsidian named "&8» &7Obsydian" with lore "&8» &6Szansa&8: &618%%||&6Drop &8» %{drop::obsydian::%player%}%" to close then run [execute player command "dropp obsydian"]
        format slot 5 of player with 1 of 368 named "&8» &5Ender Perla" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::perla::%player%}%" to close then run [execute player command "dropp perla"]
        format slot 6 of player with 1 of bookshelf named "&8» &6Biblioteczki" with lore "&8» &6Szansa&8: &619%%||&6Drop &8» %{drop::ksiazka::%player%}%" to close then run [execute player command "dropp ksiazka"]
        format slot 7 of player with 1 of tnt named "&8» &cTNT" with lore "&8» &6Szansa&8: &619%%||&6Drop &8» %{drop::tnt::%player%}%" to close then run [execute player command "dropp tnt"]
        format slot 8 of player with 1 of sand named "&8» &fPiasek" with lore "&8» &6Szansa&8: &618%%||&6Drop &8» %{drop::piasek::%player%}%" to close then run [execute player command "dropp piasek"]
        format slot 9 of player with 1 of gunpowder named "&8» &7Proch" with lore "&8» &6Szansa&8: &617%%||&6Drop &8» %{drop::proch::%player%}%" to close then run [execute player command "dropp proch"]
        format slot 10 of player with 1 of redstone block named "&8» &4Redstone" with lore "&8» &6Szansa&8: &625%%||&6Drop &8» %{drop::redstone::%player%}%" to close then run [execute player command "dropp redstone"]
        format slot 11 of player with 1 of 322:0 named "&8» &eReffy" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::refil::%player%}%" to close then run [execute player command "dropp refil"]
        format slot 12 of player with 1 of coal block named "&8» &0Wegiel" with lore "&8» &6Szansa&8: &628%%||&6Drop &8» %{drop::wegiel::%player%}%" to close then run [execute player command "dropp wegiel"]
        format slot 13 of player with 1 of string named "&8» &fNici" with lore "&8» &6Szansa&8: &614%%||&6Drop &8» %{drop::nic::%player%}%" to close then run [execute player command "dropp nic"]
        format slot 14 of player with 1 of slimeball named "&8» &aSlimeball" with lore "&8» &6Szansa&8: &615%%||&6Drop &8» %{drop::slimeball::%player%}%" to close then run [execute player command "dropp slimeball"]
        format slot 15 of player with 1 of 5 named "&8» &3Drewno" with lore "&8» &6Szansa&8: &613%%||&6Drop &8» %{drop::drewno::%player%}%" to close then run [execute player command "dropp drewno"]
        format slot 16 of player with 1 of apple named "&8» &4Jablko" with lore "&8» &6Szansa&8: &627%%||&6Drop &8» %{drop::jablko::%player%}%" to close then run [execute player command "dropp jablko"]
        format slot 26 of player with 1 of 384 named "&8» &7Exp&8: &6100" with lore "&8» &6Szansa&8: &6200%%" to be unstealable
        format slot 34 of player with 1 of 35:14 named "&8» &cWylacz Wszystko" to close then run [execute player command "dropp wszystkooff"]
        format slot 35 of player with 1 of 35:5 named "&8» &aWlacz Wszystko" to close then run [execute player command "dropp wszystkoon"]

command /dropp [<text>]:
    trigger:
        if arg is "wszystkooff" or "wszystkoon":
            if arg is "wszystkooff":
                set {drop::szmaragd::%player%} to "&cWylaczony"
                set {drop::zloto::%player%} to "&cWylaczony"
                set {drop::diament::%player%} to "&cWylaczony"
                set {drop::zelazo::%player%} to "&cWylaczony"
                set {drop::obsydian::%player%} to "&cWylaczony"
                set {drop::perla::%player%} to "&cWylaczony"
                set {drop::ksiazka::%player%} to "&cWylaczony"
                set {drop::tnt::%player%} to "&cWylaczony"
                set {drop::piasek::%player%} to "&cWylaczony"
                set {drop::proch::%player%} to "&cWylaczony"
                set {drop::redstone::%player%} to "&cWylaczony"
                set {drop::refil::%player%} to "&cWylaczony"
                set {drop::wegiel::%player%} to "&cWylaczony"
                set {drop::nic::%player%} to "&cWylaczony"
                set {drop::slimeball::%player%} to "&cWylaczony"
                set {drop::drewno::%player%} to "&cWylaczony"
                set {drop::jablko::%player%} to "&cWylaczony"
            if arg is "wszystkoon":
                set {drop::szmaragd::%player%} to "&aWlaczony"
                set {drop::zloto::%player%} to "&aWlaczony"
                set {drop::diament::%player%} to "&aWlaczony"
                set {drop::zelazo::%player%} to "&aWlaczony"
                set {drop::obsydian::%player%} to "&aWlaczony"
                set {drop::perla::%player%} to "&aWlaczony"
                set {drop::ksiazka::%player%} to "&aWlaczony"
                set {drop::tnt::%player%} to "&aWlaczony"
                set {drop::piasek::%player%} to "&aWlaczony"
                set {drop::proch::%player%} to "&aWlaczony"
                set {drop::redstone::%player%} to "&aWlaczony"
                set {drop::refil::%player%} to "&aWlaczony"
                set {drop::wegiel::%player%} to "&aWlaczony"
                set {drop::nic::%player%} to "&aWlaczony"
                set {drop::slimeball::%player%} to "&aWlaczony"
                set {drop::drewno::%player%} to "&aWlaczony"
                set {drop::jablko::%player%} to "&aWlaczony"
        else:
            if {drop::%arg%::%player%} is set:
                if {drop::%arg%::%player%} is "&aWlaczony":
                    set {drop::%arg%::%player%} to "&cWylaczony"
                    send "&cWylaczono drop"
                if {drop::%arg%::%player%} is "&cWylaczony":
                    set {drop::%arg%::%player%} to "&aWlaczony"
                    send "&aWlaczono drop"
on mine of iron ore:
    cancel event
    set block to air
       
on mine of gold ore:
    cancel event
    set block to air
       
on mine of emerald ore:
    cancel event
    set block to air
       
on mine of diamond ore:
    cancel event
    set block to air
 
on mine of coal ore:
    cancel event
    set block to air
       
on mine of redstone ore:
    cancel event
    set block to air

Podeślij teraz. Przypuszczam, że obecnym jedyny błędem będą problemy ze spacją, tak to jest jak edytuje się skrypt który był "pisany spacją", a samemu od miesięcy używa się tabu ;v

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
1 godzinę temu, PiTeKLive napisał:

Teraz działa ,dziękuję :) 0 błędów ,tylko,że jak jest drop włączony to chcę pojedynczo wyłączyć każdy przedmiot i to wyłącza i włącza go poprawiłbyś to? Bo reszta działa

variables:
    {drop::zelazo::%player%} = "&aWlaczony"
    {drop::zloto::%player%} = "&aWlaczony"
    {drop::diament::%player%} = "&aWlaczony"
    {drop::szmaragd::%player%} = "&aWlaczony"
    {drop::obsydian::%player%} = "&aWlaczony"
    {drop::perla::%player%} = "&aWlaczony"
    {drop::ksiazka::%player%} = "&aWlaczony"
    {drop::tnt::%player%} = "&aWlaczony"
    {drop::piasek::%player%} = "&aWlaczony"
    {drop::proch::%player%} = "&aWlaczony"
    {drop::redstone::%player%} = "&aWlaczony"
    {drop::drewno::%player%} = "&aWlaczony"
    {drop::refil::%player%} = "&aWlaczony"
    {drop::wegiel::%player%} = "&aWlaczony"
    {drop::nic::%player%} = "&aWlaczony"
    {drop::slimeball::%player%} = "&aWlaczony"
    {drop::jablko::%player%} = "&aWlaczony"



on mine of stone:
    if {drop::zelazo::%player%} is "&aWlaczony":
        chance of 23%:
            give 1 iron block to the player
    if {drop::zloto::%player%} is "&aWlaczony":
        chance of 10%:
            give 1 gold block to the player
    if {drop::diament::%player%} is "&aWlaczony":
        chance of 24%:
            give 1 diamond block to the player
    if {drop::szmaragd::%player%} is "&aWlaczony":
        chance of 1%:
            give 1 emerald block to the player
    if {drop::obsydian::%player%} is "&aWlaczony":
        chance of 18%:
            give 1 obsidian to the player
    if {drop::perla::%player%} is "&aWlaczony":
        chance of 10%:
            give 1 ender pearl to the player
    if {drop::ksiazka::%player%} is "&aWlaczony":
        chance of 11%:
            give 1 bookshelf to the player
    if {drop::tnt::%player%} is "&aWlaczony":
        chance of 19%:
            give 1 tnt to the player
    if {drop::piasek::%player%} is "&aWlaczony":
        chance of 18%:
            give 1 sand to the player
    if {drop::proch::%player%} is "&aWlaczony":
        chance of 17%:
            give 1 gunpowder to the player
    if {drop::redstone::%player%} is "&aWlaczony":
        chance of 25%:
            give 1 redstone block to the player
    if {drop::drewno::%player%} is "&aWlaczony":
        chance of 13%:
            give 1 17:0 to the player
    if {drop::refil::%player%} is "&aWlaczony":
        chance of 1%:
            give 1 322:0 to the player
    if {drop::wegiel::%player%} is "&aWlaczony":
        chance of 28%:
            give 1 coal block to the player
    if {drop::nic::%player%} is "&aWlaczony":
        chance of 14%:
            give 1 string to the player
    if {drop::slimeball::%player%} is "&aWlaczony":
        chance of 15%:
            give 1 slimeball to the player
    if {drop::jablko::%player%} is "&aWlaczony":
        chance of 27%:
            give 1 apple to the player
    chance of 200%:
        give 100 exp to the player

command /drop:    
    trigger:        
        open chest with 4 rows named "&8» &6Drop" to player        
        wait 2 tick        
        format slot 0 of player with 1 of emerald block named "&8» &aSzmaragd" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::szmaragd::%player%}%" to close then run [execute player command "dropp szmaragd"]
        format slot 1 of player with 1 of gold block named "&8» &eZloto" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::zloto::%player%}%" to close then run [execute player command "dropp zloto"]
        format slot 2 of player with 1 of diamond block named "&8» &bDiament" with lore "&8» &6Szansa&8: &624%%||&6Drop &8» %{drop::diament::%player%}%"  to close then run [execute player command "dropp diament"]
        format slot 3 of player with 1 of iron block named "&8» &fZelazo" with lore "&8» &6Szansa&8: &623%%||&6Drop &8» %{drop::zelazo::%player%}%" to close then run [execute player command "dropp zelazo"]
        format slot 4 of player with 1 of obsidian named "&8» &7Obsydian" with lore "&8» &6Szansa&8: &618%%||&6Drop &8» %{drop::obsydian::%player%}%" to close then run [execute player command "dropp obsydian"]
        format slot 5 of player with 1 of 368 named "&8» &5Ender Perla" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::perla::%player%}%" to close then run [execute player command "dropp perla"]
        format slot 6 of player with 1 of bookshelf named "&8» &6Biblioteczki" with lore "&8» &6Szansa&8: &619%%||&6Drop &8» %{drop::ksiazka::%player%}%" to close then run [execute player command "dropp ksiazka"]
        format slot 7 of player with 1 of tnt named "&8» &cTNT" with lore "&8» &6Szansa&8: &619%%||&6Drop &8» %{drop::tnt::%player%}%" to close then run [execute player command "dropp tnt"]
        format slot 8 of player with 1 of sand named "&8» &fPiasek" with lore "&8» &6Szansa&8: &618%%||&6Drop &8» %{drop::piasek::%player%}%" to close then run [execute player command "dropp piasek"]
        format slot 9 of player with 1 of gunpowder named "&8» &7Proch" with lore "&8» &6Szansa&8: &617%%||&6Drop &8» %{drop::proch::%player%}%" to close then run [execute player command "dropp proch"]
        format slot 10 of player with 1 of redstone block named "&8» &4Redstone" with lore "&8» &6Szansa&8: &625%%||&6Drop &8» %{drop::redstone::%player%}%" to close then run [execute player command "dropp redstone"]
        format slot 11 of player with 1 of 322:0 named "&8» &eReffy" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::refil::%player%}%" to close then run [execute player command "dropp refil"]
        format slot 12 of player with 1 of coal block named "&8» &0Wegiel" with lore "&8» &6Szansa&8: &628%%||&6Drop &8» %{drop::wegiel::%player%}%" to close then run [execute player command "dropp wegiel"]
        format slot 13 of player with 1 of string named "&8» &fNici" with lore "&8» &6Szansa&8: &614%%||&6Drop &8» %{drop::nic::%player%}%" to close then run [execute player command "dropp nic"]
        format slot 14 of player with 1 of slimeball named "&8» &aSlimeball" with lore "&8» &6Szansa&8: &615%%||&6Drop &8» %{drop::slimeball::%player%}%" to close then run [execute player command "dropp slimeball"]
        format slot 15 of player with 1 of 5 named "&8» &3Drewno" with lore "&8» &6Szansa&8: &613%%||&6Drop &8» %{drop::drewno::%player%}%" to close then run [execute player command "dropp drewno"]
        format slot 16 of player with 1 of apple named "&8» &4Jablko" with lore "&8» &6Szansa&8: &627%%||&6Drop &8» %{drop::jablko::%player%}%" to close then run [execute player command "dropp jablko"]
        format slot 26 of player with 1 of 384 named "&8» &7Exp&8: &6100" with lore "&8» &6Szansa&8: &6200%%" to be unstealable
        format slot 34 of player with 1 of 35:14 named "&8» &cWylacz Wszystko" to close then run [execute player command "dropp wszystkooff"]
        format slot 35 of player with 1 of 35:5 named "&8» &aWlacz Wszystko" to close then run [execute player command "dropp wszystkoon"]

command /dropp [<text>]:
    trigger:
        if arg is "wszystkooff" or "wszystkoon":
            if arg is "wszystkooff":
                set {drop::szmaragd::%player%} to "&cWylaczony"
                set {drop::zloto::%player%} to "&cWylaczony"
                set {drop::diament::%player%} to "&cWylaczony"
                set {drop::zelazo::%player%} to "&cWylaczony"
                set {drop::obsydian::%player%} to "&cWylaczony"
                set {drop::perla::%player%} to "&cWylaczony"
                set {drop::ksiazka::%player%} to "&cWylaczony"
                set {drop::tnt::%player%} to "&cWylaczony"
                set {drop::piasek::%player%} to "&cWylaczony"
                set {drop::proch::%player%} to "&cWylaczony"
                set {drop::redstone::%player%} to "&cWylaczony"
                set {drop::refil::%player%} to "&cWylaczony"
                set {drop::wegiel::%player%} to "&cWylaczony"
                set {drop::nic::%player%} to "&cWylaczony"
                set {drop::slimeball::%player%} to "&cWylaczony"
                set {drop::drewno::%player%} to "&cWylaczony"
                set {drop::jablko::%player%} to "&cWylaczony"
  				stop
            if arg is "wszystkoon":
                set {drop::szmaragd::%player%} to "&aWlaczony"
                set {drop::zloto::%player%} to "&aWlaczony"
                set {drop::diament::%player%} to "&aWlaczony"
                set {drop::zelazo::%player%} to "&aWlaczony"
                set {drop::obsydian::%player%} to "&aWlaczony"
                set {drop::perla::%player%} to "&aWlaczony"
                set {drop::ksiazka::%player%} to "&aWlaczony"
                set {drop::tnt::%player%} to "&aWlaczony"
                set {drop::piasek::%player%} to "&aWlaczony"
                set {drop::proch::%player%} to "&aWlaczony"
                set {drop::redstone::%player%} to "&aWlaczony"
                set {drop::refil::%player%} to "&aWlaczony"
                set {drop::wegiel::%player%} to "&aWlaczony"
                set {drop::nic::%player%} to "&aWlaczony"
                set {drop::slimeball::%player%} to "&aWlaczony"
                set {drop::drewno::%player%} to "&aWlaczony"
                set {drop::jablko::%player%} to "&aWlaczony"
  				stop
        else:
            if {drop::%arg%::%player%} is set:
                if {drop::%arg%::%player%} is "&aWlaczony":
                    set {drop::%arg%::%player%} to "&cWylaczony"
                    send "&cWylaczono drop"
  					stop
                if {drop::%arg%::%player%} is "&cWylaczony":
                    set {drop::%arg%::%player%} to "&aWlaczony"
                    send "&aWlaczono drop"
  					stop
on mine of iron ore:
    cancel event
    set block to air
       
on mine of gold ore:
    cancel event
    set block to air
       
on mine of emerald ore:
    cancel event
    set block to air
       
on mine of diamond ore:
    cancel event
    set block to air
 
on mine of coal ore:
    cancel event
    set block to air
       
on mine of redstone ore:
    cancel event
    set block to air

Powinno działać, like nie pogardzę :)

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
variables:
    {drop::zelazo::%player%} = "&aWlaczony"
    {drop::zloto::%player%} = "&aWlaczony"
    {drop::diament::%player%} = "&aWlaczony"
    {drop::szmaragd::%player%} = "&aWlaczony"
    {drop::obsydian::%player%} = "&aWlaczony"
    {drop::perla::%player%} = "&aWlaczony"
    {drop::ksiazka::%player%} = "&aWlaczony"
    {drop::tnt::%player%} = "&aWlaczony"
    {drop::piasek::%player%} = "&aWlaczony"
    {drop::proch::%player%} = "&aWlaczony"
    {drop::redstone::%player%} = "&aWlaczony"
    {drop::drewno::%player%} = "&aWlaczony"
    {drop::refil::%player%} = "&aWlaczony"
    {drop::wegiel::%player%} = "&aWlaczony"
    {drop::nic::%player%} = "&aWlaczony"
    {drop::slimeball::%player%} = "&aWlaczony"
    {drop::jablko::%player%} = "&aWlaczony"



on mine of stone:
    if {drop::zelazo::%player%} is "&aWlaczony":
        chance of 23%:
            give 1 iron block to the player
    if {drop::zloto::%player%} is "&aWlaczony":
        chance of 10%:
            give 1 gold block to the player
    if {drop::diament::%player%} is "&aWlaczony":
        chance of 24%:
            give 1 diamond block to the player
    if {drop::szmaragd::%player%} is "&aWlaczony":
        chance of 1%:
            give 1 emerald block to the player
    if {drop::obsydian::%player%} is "&aWlaczony":
        chance of 18%:
            give 1 obsidian to the player
    if {drop::perla::%player%} is "&aWlaczony":
        chance of 10%:
            give 1 ender pearl to the player
    if {drop::ksiazka::%player%} is "&aWlaczony":
        chance of 11%:
            give 1 bookshelf to the player
    if {drop::tnt::%player%} is "&aWlaczony":
        chance of 19%:
            give 1 tnt to the player
    if {drop::piasek::%player%} is "&aWlaczony":
        chance of 18%:
            give 1 sand to the player
    if {drop::proch::%player%} is "&aWlaczony":
        chance of 17%:
            give 1 gunpowder to the player
    if {drop::redstone::%player%} is "&aWlaczony":
        chance of 25%:
            give 1 redstone block to the player
    if {drop::drewno::%player%} is "&aWlaczony":
        chance of 13%:
            give 1 17:0 to the player
    if {drop::refil::%player%} is "&aWlaczony":
        chance of 1%:
            give 1 322:0 to the player
    if {drop::wegiel::%player%} is "&aWlaczony":
        chance of 28%:
            give 1 coal block to the player
    if {drop::nic::%player%} is "&aWlaczony":
        chance of 14%:
            give 1 string to the player
    if {drop::slimeball::%player%} is "&aWlaczony":
        chance of 15%:
            give 1 slimeball to the player
    if {drop::jablko::%player%} is "&aWlaczony":
        chance of 27%:
            give 1 apple to the player
    chance of 200%:
        give 100 exp to the player

command /drop:    
    trigger:        
        open chest with 4 rows named "&8» &6Drop" to player        
        wait 2 tick        
        format slot 0 of player with 1 of emerald block named "&8» &aSzmaragd" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::szmaragd::%player%}%" to close then run [execute player command "dropp szmaragd"]
        format slot 1 of player with 1 of gold block named "&8» &eZloto" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::zloto::%player%}%" to close then run [execute player command "dropp zloto"]
        format slot 2 of player with 1 of diamond block named "&8» &bDiament" with lore "&8» &6Szansa&8: &624%%||&6Drop &8» %{drop::diament::%player%}%"  to close then run [execute player command "dropp diament"]
        format slot 3 of player with 1 of iron block named "&8» &fZelazo" with lore "&8» &6Szansa&8: &623%%||&6Drop &8» %{drop::zelazo::%player%}%" to close then run [execute player command "dropp zelazo"]
        format slot 4 of player with 1 of obsidian named "&8» &7Obsydian" with lore "&8» &6Szansa&8: &618%%||&6Drop &8» %{drop::obsydian::%player%}%" to close then run [execute player command "dropp obsydian"]
        format slot 5 of player with 1 of 368 named "&8» &5Ender Perla" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::perla::%player%}%" to close then run [execute player command "dropp perla"]
        format slot 6 of player with 1 of bookshelf named "&8» &6Biblioteczki" with lore "&8» &6Szansa&8: &619%%||&6Drop &8» %{drop::ksiazka::%player%}%" to close then run [execute player command "dropp ksiazka"]
        format slot 7 of player with 1 of tnt named "&8» &cTNT" with lore "&8» &6Szansa&8: &619%%||&6Drop &8» %{drop::tnt::%player%}%" to close then run [execute player command "dropp tnt"]
        format slot 8 of player with 1 of sand named "&8» &fPiasek" with lore "&8» &6Szansa&8: &618%%||&6Drop &8» %{drop::piasek::%player%}%" to close then run [execute player command "dropp piasek"]
        format slot 9 of player with 1 of gunpowder named "&8» &7Proch" with lore "&8» &6Szansa&8: &617%%||&6Drop &8» %{drop::proch::%player%}%" to close then run [execute player command "dropp proch"]
        format slot 10 of player with 1 of redstone block named "&8» &4Redstone" with lore "&8» &6Szansa&8: &625%%||&6Drop &8» %{drop::redstone::%player%}%" to close then run [execute player command "dropp redstone"]
        format slot 11 of player with 1 of 322:0 named "&8» &eReffy" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::refil::%player%}%" to close then run [execute player command "dropp refil"]
        format slot 12 of player with 1 of coal block named "&8» &0Wegiel" with lore "&8» &6Szansa&8: &628%%||&6Drop &8» %{drop::wegiel::%player%}%" to close then run [execute player command "dropp wegiel"]
        format slot 13 of player with 1 of string named "&8» &fNici" with lore "&8» &6Szansa&8: &614%%||&6Drop &8» %{drop::nic::%player%}%" to close then run [execute player command "dropp nic"]
        format slot 14 of player with 1 of slimeball named "&8» &aSlimeball" with lore "&8» &6Szansa&8: &615%%||&6Drop &8» %{drop::slimeball::%player%}%" to close then run [execute player command "dropp slimeball"]
        format slot 15 of player with 1 of 5 named "&8» &3Drewno" with lore "&8» &6Szansa&8: &613%%||&6Drop &8» %{drop::drewno::%player%}%" to close then run [execute player command "dropp drewno"]
        format slot 16 of player with 1 of apple named "&8» &4Jablko" with lore "&8» &6Szansa&8: &627%%||&6Drop &8» %{drop::jablko::%player%}%" to close then run [execute player command "dropp jablko"]
        format slot 26 of player with 1 of 384 named "&8» &7Exp&8: &6100" with lore "&8» &6Szansa&8: &6200%%" to be unstealable
        format slot 34 of player with 1 of 35:14 named "&8» &cWylacz Wszystko" to close then run [execute player command "dropp wszystkooff"]
        format slot 35 of player with 1 of 35:5 named "&8» &aWlacz Wszystko" to close then run [execute player command "dropp wszystkoon"]

command /dropp [<text>]:
    trigger:
        if arg is "wszystkooff" or "wszystkoon":
            if arg is "wszystkooff":
                set {drop::szmaragd::%player%} to "&cWylaczony"
                set {drop::zloto::%player%} to "&cWylaczony"
                set {drop::diament::%player%} to "&cWylaczony"
                set {drop::zelazo::%player%} to "&cWylaczony"
                set {drop::obsydian::%player%} to "&cWylaczony"
                set {drop::perla::%player%} to "&cWylaczony"
                set {drop::ksiazka::%player%} to "&cWylaczony"
                set {drop::tnt::%player%} to "&cWylaczony"
                set {drop::piasek::%player%} to "&cWylaczony"
                set {drop::proch::%player%} to "&cWylaczony"
                set {drop::redstone::%player%} to "&cWylaczony"
                set {drop::refil::%player%} to "&cWylaczony"
                set {drop::wegiel::%player%} to "&cWylaczony"
                set {drop::nic::%player%} to "&cWylaczony"
                set {drop::slimeball::%player%} to "&cWylaczony"
                set {drop::drewno::%player%} to "&cWylaczony"
                set {drop::jablko::%player%} to "&cWylaczony"
  				stop
            if arg is "wszystkoon":
                set {drop::szmaragd::%player%} to "&aWlaczony"
                set {drop::zloto::%player%} to "&aWlaczony"
                set {drop::diament::%player%} to "&aWlaczony"
                set {drop::zelazo::%player%} to "&aWlaczony"
                set {drop::obsydian::%player%} to "&aWlaczony"
                set {drop::perla::%player%} to "&aWlaczony"
                set {drop::ksiazka::%player%} to "&aWlaczony"
                set {drop::tnt::%player%} to "&aWlaczony"
                set {drop::piasek::%player%} to "&aWlaczony"
                set {drop::proch::%player%} to "&aWlaczony"
                set {drop::redstone::%player%} to "&aWlaczony"
                set {drop::refil::%player%} to "&aWlaczony"
                set {drop::wegiel::%player%} to "&aWlaczony"
                set {drop::nic::%player%} to "&aWlaczony"
                set {drop::slimeball::%player%} to "&aWlaczony"
                set {drop::drewno::%player%} to "&aWlaczony"
                set {drop::jablko::%player%} to "&aWlaczony"
  				stop
        else:
            if {drop::%arg%::%player%} is set:
                if {drop::%arg%::%player%} is "&aWlaczony":
                    set {drop::%arg%::%player%} to "&cWylaczony"
                    send "&cWylaczono drop"
                    stop
                if {drop::%arg%::%player%} is "&cWylaczony":
                    set {drop::%arg%::%player%} to "&aWlaczony"
                    send "&aWlaczono drop"
                    stop
on mine of iron ore:
    cancel event
    set block to air
       
on mine of gold ore:
    cancel event
    set block to air
       
on mine of emerald ore:
    cancel event
    set block to air
       
on mine of diamond ore:
    cancel event
    set block to air
 
on mine of coal ore:
    cancel event
    set block to air
       
on mine of redstone ore:
    cancel event
    set block to air

Źle wytabowałem :)

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Dalej są 2 błędy i zauważyłem ,że zanim będzie lecieć drop to trzeba kliknąć zieloną wełnę z włącz all ,a od razu pisze włączone zrobiłbyś to? tutaj z konsolki jeszcze błędy jakieśm :/ Jakbyś to naprawił byłbym bardzo wdzięczny :)

sk reload drop
[20:01:52 INFO]: [Skript] Reloading drop.sk...
[20:01:52 ERROR]: indentation error: expected 16 spaces, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (drop.sk, line 123: stop')
[20:01:52 ERROR]: indentation error: expected 16 spaces, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (drop.sk, line 142: stop')
[20:01:52 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '17:0' with e.g. 'oak wood block'. (drop.sk, line 58: give 1 17:0 to the player')
[20:01:52 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '322:0' with e.g. 'golden apple item'. (drop.sk, line 61: give 1 322:0 to the player')
[20:01:52 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '368' with e.g. 'ender pearl'. (drop.sk, line 86: format slot 5 of player with 1 of 368 named "&8» &5Ender Perla" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::perla::%player%}%" to close then run [execute player command "dropp perla"]')
[20:01:52 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '322:0' with e.g. 'golden apple item'. (drop.sk, line 92: format slot 11 of player with 1 of 322:0 named "&8» &eReffy" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::refil::%player%}%" to close then run [execute player command "dropp refil"]')
[20:01:52 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please crate an alias for '5' (WOOD) in aliases-english.sk or the script's aliases section and use that instead. (drop.sk, line 96: format slot 15 of player with 1 of 5 named "&8» &3Drewno" with lore "&8» &6Szansa&8: &613%%||&6Drop &8» %{drop::drewno::%player%}%" to close then run [execute player command "dropp drewno"]')
[20:01:53 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '384' with e.g. 'bottle o' enchanting'. (drop.sk, line 98: format slot 26 of player with 1 of 384 named "&8» &7Exp&8: &6100" with lore "&8» &6Szansa&8: &6200%%" to be unstealable')
[20:01:53 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '35:14' with e.g. 'red wool'. (drop.sk, line 99: format slot 34 of player with 1 of 35:14 named "&8» &cWylacz Wszystko" to close then run [execute player command "dropp wszystkooff"]')
[20:01:53 WARN]: Using an ID instead of an alias is discouraged and will likely not be supported in future versions of Skript anymore. Please replace '35:5' with e.g. 'light green wool'. (drop.sk, line 100: format slot 35 of player with 1 of 35:5 named "&8» &aWlacz Wszystko" to close then run [execute player command "dropp wszystkoon"]')
[20:01:53 INFO]: [Skript] Encountered 2 errors while reloading drop.sk!
Edytowane przez PiTeKLive
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
variables:
    {drop::zelazo::%player%} = "&aWlaczony"
    {drop::zloto::%player%} = "&aWlaczony"
    {drop::diament::%player%} = "&aWlaczony"
    {drop::szmaragd::%player%} = "&aWlaczony"
    {drop::obsydian::%player%} = "&aWlaczony"
    {drop::perla::%player%} = "&aWlaczony"
    {drop::ksiazka::%player%} = "&aWlaczony"
    {drop::tnt::%player%} = "&aWlaczony"
    {drop::piasek::%player%} = "&aWlaczony"
    {drop::proch::%player%} = "&aWlaczony"
    {drop::redstone::%player%} = "&aWlaczony"
    {drop::drewno::%player%} = "&aWlaczony"
    {drop::refil::%player%} = "&aWlaczony"
    {drop::wegiel::%player%} = "&aWlaczony"
    {drop::nic::%player%} = "&aWlaczony"
    {drop::slimeball::%player%} = "&aWlaczony"
    {drop::jablko::%player%} = "&aWlaczony"



on mine of stone:
    if {drop::zelazo::%player%} is "&aWlaczony":
        chance of 23%:
            give 1 iron block to the player
    if {drop::zloto::%player%} is "&aWlaczony":
        chance of 10%:
            give 1 gold block to the player
    if {drop::diament::%player%} is "&aWlaczony":
        chance of 24%:
            give 1 diamond block to the player
    if {drop::szmaragd::%player%} is "&aWlaczony":
        chance of 1%:
            give 1 emerald block to the player
    if {drop::obsydian::%player%} is "&aWlaczony":
        chance of 18%:
            give 1 obsidian to the player
    if {drop::perla::%player%} is "&aWlaczony":
        chance of 10%:
            give 1 ender pearl to the player
    if {drop::ksiazka::%player%} is "&aWlaczony":
        chance of 11%:
            give 1 bookshelf to the player
    if {drop::tnt::%player%} is "&aWlaczony":
        chance of 19%:
            give 1 tnt to the player
    if {drop::piasek::%player%} is "&aWlaczony":
        chance of 18%:
            give 1 sand to the player
    if {drop::proch::%player%} is "&aWlaczony":
        chance of 17%:
            give 1 gunpowder to the player
    if {drop::redstone::%player%} is "&aWlaczony":
        chance of 25%:
            give 1 redstone block to the player
    if {drop::drewno::%player%} is "&aWlaczony":
        chance of 13%:
            give 1 17:0 to the player
    if {drop::refil::%player%} is "&aWlaczony":
        chance of 1%:
            give 1 322:0 to the player
    if {drop::wegiel::%player%} is "&aWlaczony":
        chance of 28%:
            give 1 coal block to the player
    if {drop::nic::%player%} is "&aWlaczony":
        chance of 14%:
            give 1 string to the player
    if {drop::slimeball::%player%} is "&aWlaczony":
        chance of 15%:
            give 1 slimeball to the player
    if {drop::jablko::%player%} is "&aWlaczony":
        chance of 27%:
            give 1 apple to the player
    chance of 200%:
        give 100 exp to the player

command /drop:    
    trigger:        
        open chest with 4 rows named "&8» &6Drop" to player        
        wait 2 tick        
        format slot 0 of player with 1 of emerald block named "&8» &aSzmaragd" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::szmaragd::%player%}%" to close then run [execute player command "dropp szmaragd"]
        format slot 1 of player with 1 of gold block named "&8» &eZloto" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::zloto::%player%}%" to close then run [execute player command "dropp zloto"]
        format slot 2 of player with 1 of diamond block named "&8» &bDiament" with lore "&8» &6Szansa&8: &624%%||&6Drop &8» %{drop::diament::%player%}%"  to close then run [execute player command "dropp diament"]
        format slot 3 of player with 1 of iron block named "&8» &fZelazo" with lore "&8» &6Szansa&8: &623%%||&6Drop &8» %{drop::zelazo::%player%}%" to close then run [execute player command "dropp zelazo"]
        format slot 4 of player with 1 of obsidian named "&8» &7Obsydian" with lore "&8» &6Szansa&8: &618%%||&6Drop &8» %{drop::obsydian::%player%}%" to close then run [execute player command "dropp obsydian"]
        format slot 5 of player with 1 of 368 named "&8» &5Ender Perla" with lore "&8» &6Szansa&8: &610%%||&6Drop &8» %{drop::perla::%player%}%" to close then run [execute player command "dropp perla"]
        format slot 6 of player with 1 of bookshelf named "&8» &6Biblioteczki" with lore "&8» &6Szansa&8: &619%%||&6Drop &8» %{drop::ksiazka::%player%}%" to close then run [execute player command "dropp ksiazka"]
        format slot 7 of player with 1 of tnt named "&8» &cTNT" with lore "&8» &6Szansa&8: &619%%||&6Drop &8» %{drop::tnt::%player%}%" to close then run [execute player command "dropp tnt"]
        format slot 8 of player with 1 of sand named "&8» &fPiasek" with lore "&8» &6Szansa&8: &618%%||&6Drop &8» %{drop::piasek::%player%}%" to close then run [execute player command "dropp piasek"]
        format slot 9 of player with 1 of gunpowder named "&8» &7Proch" with lore "&8» &6Szansa&8: &617%%||&6Drop &8» %{drop::proch::%player%}%" to close then run [execute player command "dropp proch"]
        format slot 10 of player with 1 of redstone block named "&8» &4Redstone" with lore "&8» &6Szansa&8: &625%%||&6Drop &8» %{drop::redstone::%player%}%" to close then run [execute player command "dropp redstone"]
        format slot 11 of player with 1 of 322:0 named "&8» &eReffy" with lore "&8» &6Szansa&8: &61%%||&6Drop &8» %{drop::refil::%player%}%" to close then run [execute player command "dropp refil"]
        format slot 12 of player with 1 of coal block named "&8» &0Wegiel" with lore "&8» &6Szansa&8: &628%%||&6Drop &8» %{drop::wegiel::%player%}%" to close then run [execute player command "dropp wegiel"]
        format slot 13 of player with 1 of string named "&8» &fNici" with lore "&8» &6Szansa&8: &614%%||&6Drop &8» %{drop::nic::%player%}%" to close then run [execute player command "dropp nic"]
        format slot 14 of player with 1 of slimeball named "&8» &aSlimeball" with lore "&8» &6Szansa&8: &615%%||&6Drop &8» %{drop::slimeball::%player%}%" to close then run [execute player command "dropp slimeball"]
        format slot 15 of player with 1 of 5 named "&8» &3Drewno" with lore "&8» &6Szansa&8: &613%%||&6Drop &8» %{drop::drewno::%player%}%" to close then run [execute player command "dropp drewno"]
        format slot 16 of player with 1 of apple named "&8» &4Jablko" with lore "&8» &6Szansa&8: &627%%||&6Drop &8» %{drop::jablko::%player%}%" to close then run [execute player command "dropp jablko"]
        format slot 26 of player with 1 of 384 named "&8» &7Exp&8: &6100" with lore "&8» &6Szansa&8: &6200%%" to be unstealable
        format slot 34 of player with 1 of 35:14 named "&8» &cWylacz Wszystko" to close then run [execute player command "dropp wszystkooff"]
        format slot 35 of player with 1 of 35:5 named "&8» &aWlacz Wszystko" to close then run [execute player command "dropp wszystkoon"]

command /dropp [<text>]:
    trigger:
        if arg is "wszystkooff" or "wszystkoon":
            if arg is "wszystkooff":
                set {drop::szmaragd::%player%} to "&cWylaczony"
                set {drop::zloto::%player%} to "&cWylaczony"
                set {drop::diament::%player%} to "&cWylaczony"
                set {drop::zelazo::%player%} to "&cWylaczony"
                set {drop::obsydian::%player%} to "&cWylaczony"
                set {drop::perla::%player%} to "&cWylaczony"
                set {drop::ksiazka::%player%} to "&cWylaczony"
                set {drop::tnt::%player%} to "&cWylaczony"
                set {drop::piasek::%player%} to "&cWylaczony"
                set {drop::proch::%player%} to "&cWylaczony"
                set {drop::redstone::%player%} to "&cWylaczony"
                set {drop::refil::%player%} to "&cWylaczony"
                set {drop::wegiel::%player%} to "&cWylaczony"
                set {drop::nic::%player%} to "&cWylaczony"
                set {drop::slimeball::%player%} to "&cWylaczony"
                set {drop::drewno::%player%} to "&cWylaczony"
                set {drop::jablko::%player%} to "&cWylaczony"
                stop
            if arg is "wszystkoon":
                set {drop::szmaragd::%player%} to "&aWlaczony"
                set {drop::zloto::%player%} to "&aWlaczony"
                set {drop::diament::%player%} to "&aWlaczony"
                set {drop::zelazo::%player%} to "&aWlaczony"
                set {drop::obsydian::%player%} to "&aWlaczony"
                set {drop::perla::%player%} to "&aWlaczony"
                set {drop::ksiazka::%player%} to "&aWlaczony"
                set {drop::tnt::%player%} to "&aWlaczony"
                set {drop::piasek::%player%} to "&aWlaczony"
                set {drop::proch::%player%} to "&aWlaczony"
                set {drop::redstone::%player%} to "&aWlaczony"
                set {drop::refil::%player%} to "&aWlaczony"
                set {drop::wegiel::%player%} to "&aWlaczony"
                set {drop::nic::%player%} to "&aWlaczony"
                set {drop::slimeball::%player%} to "&aWlaczony"
                set {drop::drewno::%player%} to "&aWlaczony"
                set {drop::jablko::%player%} to "&aWlaczony"
                stop
        else:
            if {drop::%arg%::%player%} is set:
                if {drop::%arg%::%player%} is "&aWlaczony":
                    set {drop::%arg%::%player%} to "&cWylaczony"
                    send "&cWylaczono drop"
                    stop
                if {drop::%arg%::%player%} is "&cWylaczony":
                    set {drop::%arg%::%player%} to "&aWlaczony"
                    send "&aWlaczono drop"
                    stop
on mine of iron ore:
    cancel event
    set block to air
       
on mine of gold ore:
    cancel event
    set block to air
       
on mine of emerald ore:
    cancel event
    set block to air
       
on mine of diamond ore:
    cancel event
    set block to air
 
on mine of coal ore:
    cancel event
    set block to air
       
on mine of redstone ore:
    cancel event
    set block to air

Błędów już nie ma, znowu zapomniałem wytabować, coś dzisiaj głowy nie mam. Co do dropu, to sprawdzałem czy nie zrobiłem błędu, i musi działać od razu, odpal jakieś nowe konto, wejdź na serwer i sprawdź czy działa, bo powinno

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...