#-------------------------------# # Licencja # # # # Skrypt wykonal: Sworip # #-------------------------------# # Zakazy: # # - Podszywanie sie pod autora # # - Zarabianie na skrypcie # # - Promowania na innych forach# #-------------------------------# # Pozwolenia: # # - Zmiany w skrypcie # #-------------------------------# #-------------------------------# # Nie zmieniac! # #-------------------------------# #Nie znasz sie? Nie ruszaj! variables: {wino.czas.%player%} = false on first join: set {wino.czas.%player%} to false on join: set {opoznieniesnow.%player%} to true #-------------------------------# # receptury # #-------------------------------# #-----# #Kraftingi #1 2 3# #4 5 6# Wyglad w craftingu oraz liczby przypisane do itemow on script load: #7 8 9# wipe server crafting recipes #-----# register new shaped recipe for bottle named "&dWino" using air, wood plate, air, apple, ender pearl, apple, glass, glass, glass register new shaped recipe for iron sword named "&7&lSzabla" using flint, iron ingot, air, iron ingot, iron sword, air, air, air, air register new shaped recipe for stick named "&8&lNoz" using iron ingot, air, air, air, iron ingot, air, air, air, stick register new shaped recipe for stick named "&2&lNoz Trucizny" using iron ingot, spider eye, air, spider eye, iron ingot, air, air, air, stick register new shaped recipe for stick named "&7&lNoz Oslabienia" using iron ingot, soul sand, air, soul sand, iron ingot, air, air, air, stick register new shaped recipe for stick named "&8&lNoz Spowolnienia" using iron ingot, slimeball, air, slimeball, iron ingot, air, air, air, stick register new shaped recipe for stick named "&c&lNoz DMGa" using iron ingot, iron ingot, air, iron ingot, iron ingot, air, air, air, stick register new shaped recipe for stick named "&5&lNoz Sily" using iron ingot, blaze powder, air, blaze powder, iron ingot, air, air, air, stick register new shaped recipe for stick named "&a&lNoz Leczenia" using iron ingot, glistering melon, air, glistering melon, iron ingot, air, air, air, stick #-------------------------------# # Danie wszystkich przedmiotow # #-------------------------------# command /craftingi daj: permission: craftingi.* trigger: give bottle named "&dWino" to player give iron sword named "&7&lSzabla" to player give stick named "&2&lNoz Trucizny" to player give stick named "&8&lNoz Spowolnienia" to player give stick named "&7&lNoz Oslabienia" to player give stick named "&c&lNoz DMGa" to player give stick named "&5&lNoz Sily" to player give stick named "&a&lNoz Leczenia" to player give iron horse armor named "&7&lKusza" to player #-------------------------------# # Szabla # #-------------------------------# on leftclick using iron sword: #czynnosc wykonuje sie po zaatakowaniu wroga if player's tool is iron sword named "&7&lSzabla": #Nazwa przedmiotu damage targeted entity by 4 hearts #Ilosc zadawanego DMG #-------------------------------# # Wino # #-------------------------------# on rightclick: #czynnosc wykonuje sie po kliknieicu PRAWYM klawiszem myszy player's tool is bottle named "&dWino": #Nazwa przedmitu if {wino.czas.%player%} is false: clicked block exists: distance between player and clicked block < 5: #zasieg teleportacji teleport player above clicked block #teleportowanie gracza po kliknieciu w blok set {wino.czas.%player%} to true # wait 7 seconds #Dlugosc odnowienia set {wino.czas.%player%} to false # else: teleport player 5 forward player #Teleportacja w powietrzu set {wino.czas.%player%} to true # wait 7 seconds #Dlugosc odnowienia set {wino.czas.%player%} to false # else: send "&cpoczekaj chwile az &dWino &csie odnowi!" #Wiadmososc przy czekaniu #-------------------------------# # Noze # #-------------------------------# on damage: if name of attacker's tool is "&2&lNoz Trucizny": #Nazwa przedmiotu remove poison from the victim #Usuwanie efektu apply poison to victim for 7 seconds #Nazwa efektu, czas trwania efektu, osoba na ktorej efekt jest nadany if name of attacker's tool is "&8&lNoz Spowolnienia": #Nazwa przedmiotu remove slow from the victim #Usuwanie efektu apply slow to victim for 3 seconds #Nazwa efektu, czas trwania efektu, osoba na ktorej efekt jest nadany if name of attacker's tool is "&7&lNoz Oslabienia": #Nazwa przedmiotu remove weakness from the victim #Usuwanie efektu apply weakness to victim for 5 seconds #Nazwa efektu, czas trwania efektu, osoba na ktorej efekt jest nadany if name of attacker's tool is "&c&lNoz DMGa": #Nazwa przedmiotu remove instant damage from the victim #Usuwanie efektu apply damage to victim for 1 seconds #Nazwa efektu, czas trwania efektu, osoba na ktorej efekt jest nadany if name of attacker's tool is "&5&lNoz Sily": #Nazwa przedmiotu remove strength from the attacker #Usuwanie efektu apply strength to attacker for 5 seconds #Nazwa efektu, czas trwania efektu, osoba na ktorej efekt jest nadany if name of attacker's tool is "&a&lNoz Leczenia": #Nazwa przedmiotu remove regeneration from the attacker #Usuwanie efektu apply regeneration to attacker for 5 seconds #Nazwa efektu, czas trwania efektu, osoba na ktorej efekt jest nadany on leftclick: if player's tool is stick named "&8&lNoz": #Nazwa przedmiotu damage targeted entity by 3 hearts #Ilosc DMG if player's tool is stick named "&2&lNoz Trucizny": #Nazwa przedmiotu damage targeted entity by 3 hearts #Ilosc DMG if player's tool is stick named "&8&lNoz Spowolnienia": #Nazwa przedmiotu damage targeted entity by 3 hearts #Ilosc DMG if player's tool is stick named "&7&lNoz Oslabienia": #Nazwa przedmiotu damage targeted entity by 3 hearts #Ilosc DMG if player's tool is stick named "&c&lNoz DMGa": #Nazwa przedmiotu damage targeted entity by 3 hearts #Ilosc DMG if player's tool is stick named "&5&lNoz Sily": #Nazwa przedmiotu damage targeted entity by 3 hearts #Ilosc DMG if player's tool is stick named "&a&lNoz Leczenia": #Nazwa przedmiotu damage targeted entity by 3 hearts #Ilosc DMG #-------------------------------# # Kusza # #-------------------------------# on rightclick using iron horse armor: if player's tool is iron horse armor named "&7&lKusza": #Nazwa przedmiotu if player has arrow: #Potrzebne itemy do strzalu if {opoznieniesnow.%player%} is false: set name of the player's tool to "&8Przeladowywanie..." #Nazwa przediomtu przy przeladowaniu execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5" #Odglos wait 1 second #czas zmiany nazwy set name of the player's tool to "&7&lKusza" #Zmiana nazwe na wczesniejsza stop else: shoot arrow with speed 5 #Szybkosc strzaly damage targeted entity by 10 hearts #ilosc dmg remove 1 arrow from the player #ilosc zabranych strzal execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10" #Odglos set {opoznieniesnow.%player%} to false # wait 1 second # Opuznienie przy strzale set {opoznieniesnow.%player%} to true # stop command /kusza: trigger: send "&3-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" send "&7&lKusza &emozliwa do kupna tylko u admin'a" send "&3-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" #-------------------------------# # crafting kuszy dla chetnych # #-------------------------------# on script load: wipe server crafting recipes register new shaped recipe for iron horse armor named "&7&lKusza" using arrow, iron ingot, iron ingot, iron ingot, stick, string, iron ingot, string, stick