Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #WORLD NAMES
- dunya1: world_nether #if your world name is not world_nether change it
- dunya2: null #If you don't want it to work in another world, name it NULL
- dunya3: null #If you don't want it to work in another world, name it NULL
- #OXYGEN MESSAGES
- oksijen_miktari_mesaj: &b&lYour Oxygen: &f%{oksijen::%uuid of player%}% #When change the world
- oksijen_kaski_mesaj: &cYour Oxygen Helmet is not attached #When change the world if player is not wear the oxygen helmet
- oksijen_mesaj: &bYour Oxygen: &f%{oksijen::%uuid of player%}% #When player used /oxygen command
- oksijen_bitti: &cOut of Oxygen! #When oxygen is out
- #OXYGEN ADMIN MESSAGES
- oksijen_admin_ekleme_admin_mesaj: &aYou added oxygen to the &f&l%arg-2% &aplayer in the amount of &f&l%arg-3% #When /oxygenadmin add message to ADMIN
- oksijen_admin_ekleme_oyuncu_mesaj: &aAdmin named &f&l%player% &ahas added oxygen to you in the amount of &f&l%arg-3% #When /oxygenadmin add message to PLAYER
- oksijen_admin_silme_admin_mesaj: &cYou have deleted the oxygen of the player named &f&l%arg-2% &cin the amount of &f&l%arg-3% #When /oxygen remove message to ADMIN
- oksijen_admin_silme_oyuncu_mesaj: &cAdmin named &f&l%player% &cdeleted your oxygen in the amount of &f&l%arg-3%#When /oxygen remove message to PLAYER
- oksijen_admin_gor_mesaj: &f&l%arg-2% &anamed player's oxygen amount: &f&l%{oksijen::%uuid of arg-2%}% #/oxygen see message
- #OXYGEN TANK
- oksijen_tupu: &9Oxygen Tank #Oxygen Tank name
- oksijen_tupu_aciklama: &8Right-click to get the oxygen from the oxygen tank #Oxygen Tank lore
- oksijen_tupu_kullanim_mesaj: &aYou used oxygen tanks in the amount &e%{oksijen_tupu_b}% &aAvailable oxygen: &e%{oksijen::%uuid of player%}% #When used oxygen tank
- oksijen_tupu_uretim_mesaj: &e%arg-1% &aYou've produced an oxygen tank in quantity #when produce a oxygen tank
- oksijen_tupu_yetersiz_oksijen: &cYou do not have oxygen in amount &e%arg-1%#When there is not enough oxygen for the oxygen tank
- oksijen_tupu_negatif_deger: &cYou have to enter a number greater than 0#When try negative number
- #COMMANDS
- oksijen: /oxygen
- oksijenadmin: /oxygenadmin
- oksijenesya: /oxygenitem
- oksijentupu: /oxygentank
- #Oxygenitem and Oxygenadmin Permission
- yetkilendirme: oxygen.admin
- #OTHER
- permission: You not have permission.
- function efektler(p: player):
- apply slowness 2 to {_p} for 2 second
- apply blindness 2 to {_p} for 2 second
- apply poison 2 to {_p} for 2 second
- apply weakness 2 to {_p} for 2 second
- apply nausea 2 to {_p} for 2 second
- apply mining fatigue 2 to {_p} for 2 second
- damage {_p} by 1 hearts
- remove regeneration from {_p}
- remove fire resistance from {_p}
- remove resistance from {_p}
- remove absorption from {_p}
- on join:
- if player's world is "{@dunya1}" or "{@dunya2}" or "{@dunya3}":
- set {oa::%uuid of player%} to true
- else:
- set {oa::%uuid of player%} to false
- if {oksijen::%uuid of player%} is not set:
- set {oksijen::%uuid of player%} to 0
- on quit:
- set {oa::%uuid of player%} to false
- on player world change:
- if player's world is "{@dunya1}" or "{@dunya2}" or "{@dunya3}":
- set {oa::%uuid of player%} to true
- while {oa::%uuid of player%} is true:
- wait 2 second
- if {oksijen::%uuid of player%} > 0:
- if custom model data of player's helmet is 1:
- set {_o} to a random integer between 2 and 10
- remove {_o} from {oksijen::%uuid of player%}
- if {oksijen::%uuid of player%} < 0:
- set {oksijen::%uuid of player%} to 0
- send action bar "{@oksijen_miktari_mesaj}" to player
- else:
- send action bar "{@oksijen_miktari_mesaj}" to player
- else:
- efektler(player)
- send action bar "{@oksijen_kaski_mesaj}" to player
- else:
- set {oksijen::%uuid of player%} to 0
- efektler(player)
- send action bar "{@oksijen_bitti}" to player
- else:
- set {oa::%uuid of player%} to false
- command {@oksijen}:
- trigger:
- if {oksijen::%uuid of player%} < 0:
- set {oksijen::%uuid of player%} to 0
- send "{@oksijen_mesaj}"
- command {@oksijenadmin} [<text>] [<player>] [<integer>]:
- permission: {@yetkilendirme}
- permission message: {@permission}
- trigger:
- if arg 1 is "ver" or "add" or "ekle" or "+":
- if arg 2 is set:
- if arg 3 is set:
- add arg 3 to {oksijen::%uuid of arg-2%}
- send "{@oksijen_admin_ekleme_admin_mesaj}" to player
- send "{@oksijen_admin_ekleme_oyuncu_mesaj}" to arg-2
- else if arg 1 is "sil" or "remove" or "kaldır" or "-":
- if arg 2 is set:
- if arg 3 is set:
- remove arg 3 from {oksijen::%uuid of arg-2%}
- send "{@oksijen_admin_silme_admin_mesaj}" to player
- send "{@oksijen_admin_silme_oyuncu_mesaj}" to arg-2
- else if arg 1 is "gör" or "see":
- if arg 2 is set:
- send "{@oksijen_admin_gor_mesaj}"
- else:
- send "&bCOMMANDS"
- send "&9/oxygenadmin add [player name] [amount]"
- send "&9/oxygenadmin remove [player name] [amount]"
- send "&9/oxygenadmin see [player name]"
- send "&bCOMMANDS"
- command {@oksijenesya}:
- permission: {@yetkilendirme}
- permission message: {@permission}
- trigger:
- give 1 of skull of "YoMamasMC" parsed as offline player named "&9Oxygen Helmet" with custom model data 1 to player
- rightclick with potion:
- if custom model data of player's held item is 1:
- cancel event
- if lore of player's held item contains "{@oksijen_tupu_aciklama}":
- set {oksijen_tupu_e::*} to name of the player's held item split at "{@oksijen_tupu}}"
- replace all "{@oksijen_tupu}" in {oksijen_tupu_e::1} with ""
- replace all " " in {oksijen_tupu_e::1} with ""
- set {oksijen_tupu_b} to "%{oksijen_tupu_e::1}%" parsed as an integer
- set {oksijen::%uuid of player%} to {oksijen::%uuid of player%} + {oksijen_tupu_b}
- remove 1 of tool from tool
- send "{@oksijen_tupu_kullanim_mesaj}" to event-player
- stop
- command {@oksijentupu} [<integer>]:
- trigger:
- if arg 1 is set:
- if arg-1 is greater than 0:
- if {oksijen::%uuid of player%} >= arg-1:
- send "{@oksijen_tupu_uretim_mesaj}"
- remove arg-1 from {oksijen::%uuid of player%}
- give potion named "%arg-1% {@oksijen_tupu}" with lore "{@oksijen_tupu_aciklama}" with custom model data 1 to player
- else:
- send "{@oksijen_tupu_yetersiz_oksijen}"
- stop
- else:
- send "{@oksijen_tupu_negatif_deger}"
- stop
- else:
- send "&eCommand usge: &b/oxygentank <amount>"
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement