Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Skript Drop
- #Wersja 0.3
- #Opcje
- options:
- #Tag skryptu
- tag: &6[Drop]
- #Ustawiasz na co ma się zmienić ruda po wykopaniu stone/air, air czyli ma zniknąć
- ustaw: air
- #Procenty
- diamond: 0.5
- iron: 0.7
- gold: 0.6
- #W komendzie drop
- prod: 0.5 #diamond
- proi: 0.7 #iron
- prog: 0.6 #gold
- #Wysokosc wydobycia
- ydiamond: 20
- yiron: 100
- ygold: 40
- #Wiadomośći o wykopaniu
- msgd: &bWykopales diament #diamond
- msgi: &fWykopales zelazo #iron
- msgg: &eWykopales zloto #gold
- #Wiadomość Error
- errord: &4Diament wypada tylko ze stone wiecej info /drop! #diamond
- errori: &4Zelazo wypada tylko ze stone wiecej info /drop! #iron
- errorg: &4Zloto wypada tylko ze stone wiecej info /drop! #gold
- #Wiadomosci przy wl/wyl
- offd: &bWylaczono wypadanie diamentu #diamond
- ond: &bWlaczono wypadanie diamentu #diamond
- offi: &fWylaczono wypadanie zelaza #iron
- oni: &fWlaczono wypadanie zelaza #iron
- offg: &eWylaczono wypadanie zlota #gold
- ong: &eWlaczono wypadanie zlota #gold
- #Nie ruszać, kiedy są aktywne
- variables:
- {vdiamond} = true #diamond
- {viron} = true #iron
- {vgold} = true #gold
- #Zabespieczenie przed TNT
- on explode:
- if entity is TNT:
- loop blocks in radius 10:
- if loop-block is diamond ore:
- set loop-block to {@ustaw}
- if loop-block is gold ore:
- set loop-block to {@ustaw}
- if loop-block is iron ore:
- set loop-block to {@ustaw}
- #Drop z Stone
- On Mine Of Stone:
- if {vdiamond} is true:
- if player's y-coordinate is smaller than {@ydiamond}:
- chance of {@diamond}%:
- message "{@tag} {@msgd}"
- drop a diamond
- stop
- if {viron} is true:
- if player's y-coordinate is smaller than {@yiron}:
- chance of {@iron}%:
- message "{@tag} {@msgi}"
- drop a iron ore
- stop
- if {vgold} is true:
- if player's y-coordinate is smaller than {@ygold}:
- chance of {@gold}%:
- message "{@tag} {@msgg}"
- drop a gold ore
- stop
- #Zablokowanie dropu z rud
- On Mine Of Diamond Ore:
- if {vdiamond} is true:
- cancel event
- set block to {@ustaw}
- message "{@tag} {@errord}"
- stop
- On Mine Of Iron Ore:
- if {viron} is true:
- cancel event
- set block to {@ustaw}
- message "{@tag} {@errori}"
- stop
- On Mine Of Gold Ore:
- if {vgold} is true:
- cancel event
- set block to {@ustaw}
- message "{@tag} {@errorg}"
- stop
- #Komendy
- command /drop:
- description: Pokazuje drop ze stone
- trigger:
- message "&2====={@tag}&2====="
- if {vdiamond} is true:
- message "&bDiament: {@prod} procent, wysokosc wydobycia ponizej y:{@ydiamond}"
- if {viron} is true:
- message "&fZelazo: {@proi} procent, wysokosc wydobycia ponizej y:{@yiron}"
- if {vgold} is true:
- message "&eZloto: {@prog} procent, wysokosc wydobycia ponizej y:{@ygold}"
- message "&2====={@tag}&2====="
- command /psychodrop [<text>]:
- description: Wlaczanie i wylaczanie rud
- permission: psychodrop.all
- trigger:
- if argument 1 is "diament":
- if {vdiamond} is true:
- set {vdiamond} to false
- message "{@tag} {@offd}"
- stop
- if {vdiamond} is false:
- set {vdiamond} to true
- message "{@tag} {@ond}"
- stop
- if argument 1 is "zelazo":
- if {viron} is true:
- set {viron} to false
- message "{@tag} {@offi}"
- stop
- if {viron} is false:
- set {viron} to true
- message "{@tag} {@oni}"
- stop
- if argument 1 is "zloto":
- if {vgold} is true:
- set {vgold} to false
- message "{@tag} {@offg}"
- stop
- if {vgold} is false:
- set {vgold} to true
- message "{@tag} {@ong}"
- stop
- if argument 1 is "list":
- message "&bdiament"
- message "&fzelazo"
- message "&ezloto"
- stop
- #Właczanie skryptu
- on Skript Start:
- send "" to the console
- send "&8--------------------------------------------------------------" to the console
- send "&8| |" to the console
- send "&8| Enable &2&lDrop &8 |" to the console
- send "&8| |" to the console
- send "&8--------------------------------------------------------------" to the console
- send "&8Autor: &2&ldem232" to the console
- send "&8Wersja: &70.3" to the console
- send "" to the console
- stop
Advertisement
Add Comment
Please, Sign In to add comment