Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #---------------------------------#
- # UltraHard By DePixel #
- # - Zabraniam : #
- # 1. Usuwanie Informacji O Autorze#
- # 2.Wykorzystywanie kodu skryptu #
- # do swoich skryptow. #
- # #
- #---------------------------------#
- zapadniecie: 10 #Szansa na zapadniecie sie blokow pod graczem
- variables:
- {uhc.pkt.%player%} = 6
- {uhc.pragnienie.%player%} = 50
- on load:
- set {_speed} to "szybkosc"
- Recipe.new{{_speed}};
- {_speed}.Recipe.registerIngredient{2, sugar};
- {_speed}.Recipe.registerIngredient{5, feather};
- {_speed}.Recipe.registerIngredient{8, water bottle};
- {_speed}.Recipe.registerResult{1 bottle of water named "&8> &2Szybkosc &8<"};
- {_speed}.Recipe.register{};
- on load:
- set {_leczenie} to "leczanie"
- Recipe.new{{_leczenie}};
- {_leczenie}.Recipe.registerIngredient{2, golden apple};
- {_leczenie}.Recipe.registerIngredient{5, golden carrot};
- {_leczenie}.Recipe.registerIngredient{8, water bottle};
- {_leczenie}.Recipe.registerResult{1 bottle of water named "&8> &2Uleczanie &8<"};
- {_leczenie}.Recipe.register{};
- on join:
- if {uhc.gracz.%player%} is not set:
- set max health of player to 6
- if {uhc.pragnienie.%player%} is not set:
- set {uhc.pragnienie.%player%} to 50
- if {uhc.lvlup.%player%} is not set:
- set {uhc.lvlup.%player%} to 0
- on walk on cobblestone or planks or stone:
- chance of {@zapadniecie}%:
- loop blocks in radius 1 of block under player:
- loop-block is not air or bedrock:
- block under loop-block is air:
- if loop-block is stone:
- set loop-block to air
- spawn falling stone at loop-block
- if loop-block is planks:
- set loop-block to air
- spawn falling planks at loop-block
- if loop-block is cobblestone:
- set loop-block to air
- spawn falling cobblestone at loop-block
- on consume:
- if player's tool is golden apple:
- cancel event
- remove 1 golden apple from player
- heal player by 1 or 2 heart
- add 3 to player's food
- if player's tool is golden apple:1:
- cancel event
- remove 1 golden apple:1 from player
- heal player by 3 or 4 heart
- add 4 to player's food
- if player's tool is water bottle named "<dark green>Nieugotowana woda":
- chance of 50%:
- apply poison to the player for 1 minute
- send "[&6UH&f] Zapomniales ugotowac wode i sie otrułeś!"
- if name of player's tool is "<aqua>Ugotowana Woda":
- if {uhc.pragnienie.%player%} is smaller than 50:
- add 10 to {uhc.pragnienie.%player%}
- display "&aPragnienie % {uhc.pragnienie.%player%}%/50" on bossbar with 100 percent by 5 seconds for player
- if name of player's tool is "&8> &2Szybkosc &8<":
- apply speed to the player for 60 seconds
- send "[&6UH&f] Wypiles Mixture na szybkosc!"
- if name of player's tool is "&8> &2Uleczanie &8<":
- heal player by 5 hearts
- send "[&6UH&f] Zostales Uleczony"
- on click with glass bottle:
- if target block is water:
- cancel event
- wait 1 tick
- remove glass bottle from the player
- add water bottle named "<dark green>Nieugotowana woda" to the player
- on death of zombie or skeleton or spider:
- add 1 to {uhc.lvlup.%attacker%}
- every 5 seconds:
- loop all players:
- if {uhc.lvlup.%loop-player%} is equal to 10:
- add 1 to {uhc.pkt.%loop-player%}
- set {uhc.lvlup.%loop-player%} to 0
- set max health of loop-player to {uhc.pkt.%loop-player%}
- if loop-player's health is more than 10:
- set max health of loop-player to 9
- command /uh [<text>]:
- trigger:
- if arg 1 is not set:
- send "&8[]=====&6UH&8=====[]"
- send "&8/uh lvl - &6 Sprawdz ile pkt. potrzebujesz aby zdobyc HP"
- send "&8/uh autor - &6 Sprawdz autora Skriptu"
- if arg 1 is "autor":
- send "&8[]=====&6UH&8=====[]"
- send "&2 Autor Skryptu - DePixel"
- if arg 1 is "lvl":
- send "&8[]=====&6UH&8=====[]"
- send "&2 Masz %{uhc.lvlup.%player%}%/10 pkt. "
- send "&2 Po osiagniecu 10 pkt. dostajesz 1 HP"
- command /reset:
- trigger:
- set {uhc.lvlup.%player%} to 0
- set {uhc.pkt.%player%} to 6
- set max health of player to 5
- on spawn of creeper:
- chance of 30%:
- spawn event-entity
- apply speed 1 to spawned entity
- strike lightning at last spawned entity
- apply fire resistance to spawned entity
- wait 3 ticks
- extinguish spawned entity
- on spawn of zombie:
- chance of 30%:
- equip event-entity with golden chestplate and golden leggings and golden helmet
- apply speed 1 to spawned entity
- apply fire resistance to spawned entity
- wait 3 ticks
- extinguish spawned entity
- at 8:00 pm:
- send "[&6UH&f]&4 Zapada Zmrok!" to all players
- send "[&6UH&f]&4 Lepiej Znajdz Schronienie" to all players
- apply slowness to all players for 1 day
- at 6:00 am:
- loop all players:
- remove slowness from loop-player
- every 5 seconds:
- loop all players:
- if time in loop-player's world is night:
- light level at the loop-player is smaller than 11:
- damage loop-player by 1 hearts
- if {uhc.pragnienie.%loop-player%} is smaller than 10:
- damage loop-player by 1 hearts
- send "[&6UH&f] Twój poziom pragnienia jest niski!" to loop-player
- display "&22%{uhc.pragnienie.%loop-player%}%/50" on bossbar with 100 percent by 5 seconds for loop-player
- if loop-player contains diamond sword of sharpness 4:
- remove diamond sword of sharpness 4 from the loop-player
- send "[UH] Miecze z LvL'em wyższym niż 3 są zablokowane" to loop-player
- if loop-player contains diamond sword of smite 4:
- remove diamond sword of smite 4 from the loop-player
- send "[UH] Miecze z LvL'em wyższym niż 3 są zablokowane" to loop-player
- if loop-player contains diamond sword of bane of arthropods 4:
- remove diamond sword of bane of arthropods 4 from the loop-player
- send "[UH] Miecze z LvL'em wyższym niż 3 są zablokowane" to loop-player
- every 10 minutes:
- loop all players:
- if loop-player's y-coordinate is smaller than 50:
- chance of 50%:
- if {uhc.zapada.%loop-player%} is true:
- set {uhc.zapada.%loop-player%} to false
- loop blocks in radius 10 of loop-player:
- if block under loop-block is air:
- send "[&6UH&f] &f Kopalnia sie zapada!" to loop-player
- wait 10 seconds
- set loop-block to air
- spawn falling stone at loop-block
- wait 9 minutes
- set {uhc.zapada.%loop-player%} to false
- on damage of wither skeleton:
- if name of victim is "&4Mroczny Szkielet":
- remove boss bar from attacker
- set {uhc.proc.%victim%} to rounded health of victim
- if {uhc.proc.%victim%} is between 1 and 100:
- chance of 50%:
- display "&4Mroczny Szkielet" on bossbar with 100 percent by 2 seconds for attacker
- chance of 30%:
- display "%{uhc.proc.%victim%}%/100" on bossbar with 100 percent by 5 seconds for attacker
- if attacker is player:
- chance of 10%:
- if distance between victim and attacker is smaller than 20:
- ignite attacker
- strike lightning effect at attacker
- on spawn of pig:
- chance of 10%:
- cancel event
- spawn a zombie pigman
- set display name of spawned entity to "&4Piekielny Zombie"
- set max health of spawned entity to 100
- heal spawned entity
- set {uhc.bossy.%entity%} to true
- on damage of a zombie pigman:
- if name of victim is "&4Piekielny Zombie":
- remove boss bar from attacker
- set {uhc.proc.%victim%} to rounded health of victim
- if {uhc.proc.%victim%} is between 1 and 100:
- chance of 50%:
- display "&4Piekielny Zombie" on bossbar with 100 percent by 2 seconds for attacker
- chance of 30%:
- display "%{uhc.proc.%victim%}%/100" on bossbar with 100 percent by 5 seconds for attacker
- on break of stone:
- chance of 5%:
- player's y-coordinate is smaller than 60:
- loop blocks in radius 1 of event-block:
- loop-block is stone:
- block below or above loop-block is air:
- chance of 20%:
- set loop-block to air
- spawn a silverfish at loop-block
- on damage of player:
- if attacker is silverfish:
- chance of 5%:
- loop blocks in radius 4 of attacker:
- loop-block is stone:
- block below or above loop-block is air:
- set loop-block to air
- spawn a silverfish at loop-block
- on death of creature:
- if victim is wither skeleton:
- if attacker is player:
- name of victim is "&4Mroczny Szkielet":
- broadcast "[&6UH&f] &2 Gracz &l%attacker% &2 Zabil &9 Mrocznego Szkieleta!"
- if victim is zombie pigman:
- if attacker is player:
- name of victim is "&4Piekielny Zombie":
- broadcast "[&6UH&f] &2 Gracz &l%attacker% &2 Zabil &4 Piekielnego Zombie!!"
- every 120 seconds:
- loop all players:
- add random integer between -1 and -5 to {uhc.pragnienie.%loop-player%}
- on spawn of skeleton:
- chance of 10%:
- cancel event
- spawn a wither skeleton
- set display name of spawned entity to "&4Mroczny Szkielet"
- set max health of spawned entity to 100
- heal spawned entity
- set {uhc.bossy.%entity%} to true
- on click on brewing stand:
- cancel event
- send "[UH] Brewing Stand Jest Zablokowany"
- on right click on cauldron:
- if event-block is cauldron:3:
- if block under event-block is fire:
- if player's tool is bottle:
- remove 1 water bottle from player
- add bottle of water named "<aqua>Ugotowana Woda" to the player
- set event-block to cauldron:2
- stop trigger
- if event-block is cauldron:2:
- if block under event-block is fire:
- if player's tool is bottle:
- remove 1 water bottle from player
- add bottle of water named "<aqua>Ugotowana Woda" to the player
- set event-block to cauldron:1
- stop trigger
- if event-block is cauldron:1:
- if block under event-block is fire:
- if player's tool is bottle:
- remove 1 water bottle from player
- add bottle of water named "<aqua>Ugotowana Woda" to the player
- set event-block to cauldron
- stop trigger
- on death of player:
- set {uhc.pragnienie.%player%} to 50
Advertisement
Add Comment
Please, Sign In to add comment