Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #╔══════════════════════════════════════════════════════════════════════════════╗
- #║ _______ ______ _______ _______ _________ _______ _______ ║
- #║ ( )|\ /| ( __ \ ( ____ \( ____ \\__ __/( ____ )( ____ \ ║
- #║ | () () |( \ / ) | ( \ )| ( \/| ( \/ ) ( | ( )|| ( \/ ║
- #║ | || || | \ (_) / | | ) || (__ | (_____ | | | (____)|| (__ ║
- #║ | |(_)| | \ / | | | || __) (_____ ) | | | __)| __) ║
- #║ | | | | ) ( | | ) || ( ) | | | | (\ ( | ( ║
- #║ | ) ( | | | | (__/ )| (____/\/\____) |___) (___| ) \ \__| (____/\ ║
- #║ |/ \| \_/ (______/ (_______/\_______)\_______/|/ \__/(_______/ ║
- #╚══════════════════════════════════════════════════════════════════════════════╝
- #
- #╔═══════════════════════════════════════╗
- #║ Podstawowe informacje ║
- #║Nazwa skryptu: ║
- #║ ► MyDesire ║
- #║Autor: ║
- #║ ► Slupik98 ║
- #║Wersja: ║
- #║ ► Beta v1.0 ║
- #╠═══════════════════════════════════════╣
- #║ Licencja ║
- #║ ► Zakaz rozpowszechniania skryptu ║
- #║ bez zgody autora ║
- #║ ► Zakaz używania cześci skryptu ║
- #║ bez zgody autora ║
- #║ ► Zakaz czerpania bezpośrednich i ║
- #║ pośrednich korzyści ║
- #║ majątkowych z tego skryptu ║
- #║ ► Zakaz zmiany licencji ║
- #║ ► Skrypt można modyfikować tylko ║
- #║ na własy użytek ║
- #╚═══════════════════════════════════════╝
- #
- variables:
- {MyDesire.desire.%player%} = 3
- #
- Options:
- right.cooldwon: 10#Czas między użyciami supermocy aktywowanej prawym przyciskiem myszy w sekundach
- left.cooldwon: 10#Czas między użyciami supermocy aktywowanej lewym przyciskiem myszy w sekundach
- #╔═══════════════════════════════════════╗
- #║ ║
- #║ Pustynne zombie ║
- #║ ║
- #╚═══════════════════════════════════════╝
- on spawn of zombie:
- if biome at event-location is Desert:
- chance of 30%:
- set helmet of the event-entity to a leather helmet of Unbreaking 2
- dye event-entity's helmet yellow
- set chestplate of the event-entity to a leather chestplate
- dye event-entity's chestplate yellow
- set leggings of the event-entity to a leather leggings
- dye event-entity's leggings yellow
- set boots of the event-entity to a leather boots
- dye event-entity's boots yellow
- set the event-entity's display name to "&e&nPustynne Zombie &6[lvl &41&6]"
- stop
- chance of 20%:
- set helmet of the event-entity to a leather helmet of Unbreaking 2
- dye event-entity's helmet yellow
- set chestplate of the event-entity to a leather chestplate
- dye event-entity's chestplate yellow
- set leggings of the event-entity to a leather leggings
- dye event-entity's leggings yellow
- set boots of the event-entity to a leather boots
- dye event-entity's boots yellow
- set the event-entity's display name to "&e&nPustynne Zombie &6[lvl &42&6]"
- set the event-entity's max health to 25
- heal last spawned entity
- stop
- chance of 10%:
- set helmet of the event-entity to a leather helmet of Unbreaking 2
- dye event-entity's helmet yellow
- set chestplate of the event-entity to a leather chestplate
- dye event-entity's chestplate yellow
- set leggings of the event-entity to a leather leggings
- dye event-entity's leggings yellow
- set boots of the event-entity to a leather boots
- dye event-entity's boots yellow
- set the event-entity's display name to "&e&nPustynne Zombie &6[lvl &43&6]"
- set the event-entity's max health to 30
- heal last spawned entity
- stop
- chance of 100%:
- set helmet of the event-entity to a leather helmet of Unbreaking 2
- dye event-entity's helmet yellow
- set chestplate of the event-entity to a leather chestplate
- dye event-entity's chestplate yellow
- set leggings of the event-entity to a leather leggings
- dye event-entity's leggings yellow
- set boots of the event-entity to a leather boots
- dye event-entity's boots yellow
- set the event-entity's display name to "&e&nPustynne Zombie &6[lvl &40&6]"
- stop
- #
- #╔═══════════════════════════════════════╗
- #║ ║
- #║ Pustynny szkielet ║
- #║ ║
- #╚═══════════════════════════════════════╝
- on spawn of skeleton:
- if biome at event-location is Desert:
- chance of 30%:
- set helmet of the event-entity to a leather helmet of Unbreaking 2
- dye event-entity's helmet yellow
- set chestplate of the event-entity to a leather chestplate
- dye event-entity's chestplate yellow
- set leggings of the event-entity to a leather leggings
- dye event-entity's leggings yellow
- set boots of the event-entity to a leather boots
- dye event-entity's boots yellow
- set the event-entity's display name to "&e&nPustynny Szkielet &6[lvl &41&6]"
- stop
- chance of 20%:
- set helmet of the event-entity to a leather helmet of Unbreaking 2
- dye event-entity's helmet yellow
- set chestplate of the event-entity to a leather chestplate
- dye event-entity's chestplate yellow
- set leggings of the event-entity to a leather leggings
- dye event-entity's leggings yellow
- set boots of the event-entity to a leather boots
- dye event-entity's boots yellow
- set the event-entity's display name to "&e&nPustynny Szkielet &6[lvl &42&6]"
- #
- set the event-entity's max health to 25
- heal last spawned entity
- stop
- chance of 10%:
- set helmet of the event-entity to a leather helmet of Unbreaking 2
- dye event-entity's helmet yellow
- set chestplate of the event-entity to a leather chestplate
- dye event-entity's chestplate yellow
- set leggings of the event-entity to a leather leggings
- dye event-entity's leggings yellow
- set boots of the event-entity to a leather boots
- dye event-entity's boots yellow
- set the event-entity's display name to "&e&nPustynny Szkielet &6[lvl &43&6]"
- #
- set the event-entity's max health to 30
- heal last spawned entity
- stop
- chance of 100%:
- set helmet of the event-entity to a leather helmet of Unbreaking 2
- dye event-entity's helmet yellow
- set chestplate of the event-entity to a leather chestplate
- dye event-entity's chestplate yellow
- set leggings of the event-entity to a leather leggings
- dye event-entity's leggings yellow
- set boots of the event-entity to a leather boots
- dye event-entity's boots yellow
- set the event-entity's display name to "&e&nPustynny Szkielet &6[lvl &403&6]"
- stop
- #
- #╔═══════════════════════════════════════╗
- #║ ║
- #║ Mumie ║
- #║ ║
- #╚═══════════════════════════════════════╝
- on death of player:
- if biome at victim is desert or Desert Hills:
- chance of 90%:
- spawn 1 zombie at location of victim
- set helmet of the last spawned entity to a leather helmet of Unbreaking 2
- dye last spawned entity's helmet yellow
- set chestplate of the last spawned entity to a leather chestplate
- dye last spawned entity's chestplate yellow
- set leggings of the last spawned entity to a leather leggings
- dye last spawned entity's leggings yellow
- set boots of the last spawned entity to a leather boots
- dye last spawned entity's boots yellow
- set tool of the last spawned entity to tool of victim
- set the last spawned entity's display name to "&e&nMumia gracza %victim%"
- apply fire resistance 2 to the last spawned entity for 100 days
- apply speed 2 to the last spawned entity for 100 days
- stop
- chance of 100%:
- spawn 1 zombie at location of victim
- set helmet of the last spawned entity to a leather helmet of Unbreaking 2
- dye last spawned entity's helmet yellow
- set chestplate of the last spawned entity to a leather chestplate
- dye last spawned entity's chestplate yellow
- set leggings of the last spawned entity to a leather leggings
- dye last spawned entity's leggings yellow
- set boots of the last spawned entity to a leather boots
- dye last spawned entity's boots yellow
- set tool of the last spawned entity to Blaze Rod
- set the last spawned entity's display name to "&e&nMumia faraona %victim%"
- apply fire resistance 2 to the last spawned entity for 100 days
- apply speed 2 to the last spawned entity for 100 days
- set {_loc} to location of the last spawned entity
- set the last spawned entity's max health to 50
- heal last spawned entity
- stop
- on death of zombie:
- if name of victim contains "&e&nMumia faraona":
- add Blaze Rod with name "&6Pałka faraona" to attacker's inventory
- on damage of player:
- if attacker is zombie:
- if name of attacker contains "&e&nMumia faraona" or "&e&nMumia gracza":
- set {_is} to false
- loop all items in victim's inventory:
- if loop-item is Blaze Rod with name "&6Pałka faraona":
- set {_is} to true
- if {_is} is true:
- if {mumia.info.%victim%} is not set:
- set {mumia.info.%victim%} to false
- if {mumia.licznik.info.%victim%} is not set:
- set {mumia.licznik.info.%victim%} to 0
- if {mumia.licznik.info.%victim%} is more than or equal to 500:
- set {mumia.info.%victim%} to false
- set {mumia.licznik.info.%victim%} to 0
- else:
- add 1 to {mumia.licznik.info.%victim%}
- if {mumia.info.%victim%} is false:
- send "&6Te Zombie nic nie mogą Tobie zrobić, ponieważ strzeże Ciebie moc faraona!" to victim
- set {mumia.info.%victim%} to true
- cancel event
- on quit:
- if {mumia.info.%player%} is set:
- delete {mumia.info.%player%}
- if {mumia.licznik.info.%player%} is set:
- delete {mumia.licznik.info.%player%}
- if {PowerOfFaro.cooldown.left.%player%} is set:
- delete {PowerOfFaro.cooldown.left.%player%}
- if {PowerOfFaro.cooldown.right.%player%} is set:
- delete {PowerOfFaro.cooldown.right.%player%}
- #
- #╔═══════════════════════════════════════╗
- #║ ║
- #║ Super Moce faraona ║
- #║ ║
- #╚═══════════════════════════════════════╝
- on rightclick with blaze rod:
- if name of player's tool is "&6Pałka faraona":
- if {PowerOfFaro.cooldown.right.%player%} is true:
- if player have 1 lava bucket:
- if target block is not air:
- remove 1 lava bucket from player's inventory
- set {_x} to block 10 blocks above targeted block
- spawn falling Lava at {_x}
- #loop entities in radius 5 around the player:
- # loop-entity is falling block
- # push the loop-entity above player with speed 2
- # push the loop-entity behind with speed 2
- loop all players in radius 20 around player:
- send "&4Uważaj by Faraon czasem nie rzucił w Ciebie lawą!" to loop-player
- set {PowerOfFaro.cooldown.right.%player%} to false
- wait {@right.cooldwon} seconds
- set {PowerOfFaro.cooldown.right.%player%} to true
- else:
- send "&4Wskazany blok musi nie być powietrzem!"
- else:
- send "Nie masz ani jednego wiaderka lawy, więc nie możesz użyć tej supermocy!"
- else:
- send "Między użyciami supermocy musi minąć {@right.cooldwon} sekund"
- on leftclick with blaze rod:
- if name of player's tool is "&6Pałka faraona":
- if {PowerOfFaro.cooldown.left.%player%} is true:
- if player have 5 coal:
- remove 5 coal from player's inventory
- apply fire resistance 2 to the player for 1 minute
- loop all blocks in radius 5 around player:
- if loop-block is air:
- set loop-block to fire
- loop all players in radius 20 around player:
- send "&4Faraon zapłonął gniewem!" to loop-player
- set {PowerOfFaro.cooldown.left.%player%} to false
- wait {@left.cooldwon} seconds
- set {PowerOfFaro.cooldown.left.%player%} to true
- else:
- send "Nie masz 5 sztuk węgla kamiennego by użyć tej supermocy!"
- else:
- send "Między użyciami supermocy musi minąć {@left.cooldwon} sekund"
- on walking on water:
- if player's tool is blaze rod with name "&6Pałka faraona":
- set event-block to Sandstone
- wait 1 second
- set event-block to water
- on walking on lava:
- if player's tool is blaze rod with name "&6Pałka faraona":
- remove fire resistance from the player
- apply fire resistance 2 to the player for 1 minute
- set event-block to Sandstone
- wait 1 second
- set event-block to lava
- #
- #╔═══════════════════════════════════════╗
- #║ ║
- #║ Ustawnia przy dołączeniu ║
- #║ ║
- #╚═══════════════════════════════════════╝
- on join:
- set {PowerOfFaro.cooldown.left.%player%} to true
- set {PowerOfFaro.cooldown.right.%player%} to true
- set {mumia.info.%player%} to false
- set {mumia.licznik.info.%player%} to 0
- set {_size} to ({MyDesire.desire.%player%}/3)*100
- delete boss bar of player
- create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
- #
- #╔═══════════════════════════════════════╗
- #║ ║
- #║ Pragnienie ║
- #║ ║
- #╚═══════════════════════════════════════╝
- every 2 minutes:
- loop all players:
- if loop-player do not have permissions "mydesire.antydesire" or "mydesire.*":
- if loop-player is alive:
- set {_ok} to false
- if biome at loop-player is desert or Desert Hills or Savanna or Mesa or Hell:
- set {_ok} to true
- remove 0.5 from {MyDesire.desire.%loop-player%}
- if biome at loop-player is Jungle or Jungle Edge or Roofed Forest:
- set {_ok} to true
- remove 0.4 from {MyDesire.desire.%loop-player%}
- if biome at loop-player is Frozen River or Ice Plains or Ice Plains Spikes or Cold Beach or Cold Taiga:
- set {_ok} to true
- remove 0.1 from {MyDesire.desire.%loop-player%}
- if {_ok} is false:
- remove 0.2 from {MyDesire.desire.%loop-player%}
- if {MyDesire.desire.%loop-player%} is less than or equal to 0:
- send "&4Umierasz z pragnienia!" to loop-player
- loop 10000 times:
- if loop-player is alive:
- damage the loop-player by 1
- wait 1 second
- else:
- set {MyDesire.desire.%loop-player%} to 2
- set {_size} to ({MyDesire.desire.%loop-player%}/3)*100
- delete boss bar of loop-player
- create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%loop-player%}%l/3l" and volume {_size} to loop-player
- #
- #╔═══════════════════════════════════════╗
- #║ ║
- #║ Uzupełnianie poziomu płynów ║
- #║ ║
- #╚═══════════════════════════════════════╝
- on player drink of water bottle:
- if player do not have permissions "mydesire.antydesire" or "mydesire.*":
- if {MyDesire.desire.%player%} is less than or equal to 3:
- add 0.2 to {MyDesire.desire.%player%}
- else:
- send "&3Jesteś już w pełni nawodniony"
- if {MyDesire.desire.%player%} is more than or equal to 3:
- set {MyDesire.desire.%player%} to 3
- send "&3Za dużo się napiłeś, ale już został przywrócony optymalny poziom nawodnienia"
- set {_size} to ({MyDesire.desire.%player%}/3)*100
- delete boss bar of player
- create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
- on rightclick with water Bucket on air:
- if player do not have permissions "mydesire.antydesire" or "mydesire.*":
- if {MyDesire.desire.%player%} is less than or equal to 3:
- add 0.8 to {MyDesire.desire.%player%}
- remove water bucket from player's inventory
- add bucket to player's inventory
- else:
- send "&3Jesteś już w pełni nawodniony"
- if {MyDesire.desire.%player%} is more than or equal to 3:
- set {MyDesire.desire.%player%} to 3
- send "&3Za dużo się napiłeś, ale już został przywrócony optymalny poziom nawodnienia"
- set {_size} to ({MyDesire.desire.%player%}/3)*100
- delete boss bar of player
- create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
- on death of player:
- set {MyDesire.desire.%player%} to 2
- set {_size} to ({MyDesire.desire.%player%}/3)*100
- delete boss bar of player
- create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
- #
- #╔═══════════════════════════════════════╗
- #║ ║
- #║ Spadek nawodnienia przez konsumpkcję ║
- #║ ║
- #╚═══════════════════════════════════════╝
- #żeby strawić pokarm organizm wydziela kwas solny, a także używa procesu hydrolizy, co pochłania wodę
- on eat:
- if player do not have permissions "mydesire.antydesire" or "mydesire.*":
- remove 0.1 from {MyDesire.desire.%player%}
- if {MyDesire.desire.%player%} is less than or equal to 0:
- send "&4Umierasz z pragnienia!"
- set {_index} to 2
- loop {_index} times:
- if player is alive:
- add 1 to {_index}
- set {_attacker} to "Pragnienie"
- make {_attacker} damage player by 1
- wait 1 second
- else:
- exit loop
- set {_size} to ({MyDesire.desire.%player%}/3)*100
- delete boss bar of player
- create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
- #
- #╔═══════════════════════════════════════╗
- #║ ║
- #║ Zastępcza komenda na ║
- #║ sprawdzenie nawodnienia ║
- #╚═══════════════════════════════════════╝
- command /desire:
- aliases: nawodnienie
- trigger:
- send "&3Obecnie posiadasz w swoim organizmie %{MyDesire.desire.%player%}% litrów wody na maxymalne 3"
- set {_size} to ({MyDesire.desire.%player%}/3)*100
- delete boss bar of player
- create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
Advertisement
Add Comment
Please, Sign In to add comment