Skocz do zawartości

devyy

Użytkownik
  • Ilość zawartości

    261
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    3

Treść opublikowana przez devyy

  1. testowalem tylko na skripcie czystym
  2. devyy

    Skrypt na zw

    on chat: if message is "zw" or "z/w": teleport player to location(-46, 48, 61)
  3. np: /give @p minecraft:diamond_pickaxe{Enchantments:[{id:efficiency,lvl:255}, {id:unbreaking,lvl:255}]}
  4. podaj 2 nazwy pluginow najlepiej z autorami jak jest to tab typu TAB by Neznamy
  5. devyy

    fajny luk

    w sensie tworzy 1?
  6. Tak? Jak ja sprawdzałem nic nie było i działało
  7. devyy

    Function

    command /test <player>: trigger: Test1(player, arg-1) function Test1(p1: player, p2: player): send "%{p1}% %{p2}%" to {_p1} tak jak napisał Helios nie odzieliłeś arg funkcji przecinkiem
  8. command /czas [<integer>]: trigger: set {czas} to arg 1 send "&aUstawiono timer/czas na %arg 1% sekund." to player every 1 second: if {czas} is set: add 1 to {licznik} if {licznik} >= {czas}: loop all players: give loop-player 1 of random items out of all items set {licznik} to 0 np tak
  9. command /kit: trigger: set {_gui} to chest inventory with 1 row named "&6Kity" set slot 2 of {_gui} to diamond sword named "&aGracz" with lore "&7Kliknij aby zobaczyć zawartość kity" set slot 4 of {_gui} to diamond sword named "&bVIP" with lore "&7Kliknij aby zobaczyć zawartość kity" open {_gui} to player on inventory click: if name of event-inventory is "&6Kity": cancel event if clicked slot is 2: if player has permission "kit.gracz": openKitGui(player, "gracz") else: send "&cNie masz uprawnień do tej kity!" to player if clicked slot is 4: if player has permission "kit.vip": openKitGui(player, "vip") else: send "&cNie masz uprawnień do tej kity!" to player function openKitGui(p: player, kit: text): set {_gui} to chest inventory with 3 rows named "&6Kit %{_kit}%" set slot (numbers between 0 and 26) of {_gui} to black stained glass pane if {_kit} is "gracz": set slot 10 of {_gui} to diamond sword set slot 11 of {_gui} to diamond pickaxe set slot 12 of {_gui} to diamond axe if {_kit} is "vip": set slot 10 of {_gui} to netherite sword set slot 11 of {_gui} to netherite pickaxe set slot 12 of {_gui} to netherite axe if {kit-cooldown::%{_p}%::%{_kit}%} is not set: set slot 17 of {_gui} to lime dye named "&aOdbierz" with lore "&7Kliknij aby odebrać kit" else: set {_remaining} to difference between {kit-cooldown::%{_p}%::%{_kit}%} and now set slot 17 of {_gui} to gray dye named "&cOdbierz za %difference between {kit-cooldown::%{_p}%::%{_kit}%} and now%" with lore "&7Musisz poczekać zanim będziesz mógł odebrać ten kit ponownie" open {_gui} to {_p} set {kit} to {_kit} on inventory click: if name of event-inventory contains "&6Kit ": cancel event if clicked slot is 17: set {_item} to name of clicked slot if {_item} is "&aOdbierz": close player's inventory set {_name} to name of event-inventory replace all "&6Kit " in {_name} with "" if {_kit} is "gracz": give diamond sword to player give diamond pickaxe to player give diamond axe to player if {_kit} is "vip": give netherite sword to player give netherite pickaxe to player give netherite axe to player send "&aOdebrałeś kit %{_kit}%!" to player set {kit-cooldown::%player%::%{_kit}%} to now add 1 day to {kit-cooldown::%player%::%{_kit}%} pisałem na szybko i nie testowałem chociaż i tak lepiej użyj PlayerKits just better
  10. devyy

    fajny luk

    on shoot: projectile is arrow shooter is player set {_arrow} to projectile set {_loc} to location of {_arrow} set {_blocks::*} to blocks in radius 3 around {_loc} create an explosion of force 3 at {_loc} wait 3 seconds loop {_blocks::*}: set block at loop-value to loop-value wait 0.3 second nie testowałem ale wydaje się działać
  11. devyy

    Zarzadzanie czatem gracza

    napisałem że może się przyda xD nie ma to sensu ale no...
  12. /tellraw @a [{"text":"Text 1","clickEvent":{"action":"run_command","value":"/tellraw @s {\"text\":\"Text 1 clicked\"}"}},{"text":", "},{"text":"Text 2","clickEvent":{"action":"run_command","value":"/tellraw @s {\"text\":\"Text 2 clicked\"}"}},{"text":", "},{"text":"Text 3","clickEvent":{"action":"run_command","value":"/tellraw @s {\"text\":\"Text 3 clicked\"}"}},{"text":", "},{"text":"Text 4","clickEvent":{"action":"run_command","value":"/tellraw @s {\"text\":\"Text 4 clicked\"}"}}}] masz
  13. options: startowe-zycia: 3 koszt-zycia: 50 command /zycia [<offlineplayer>]: trigger: if arg 1 is not set: send "&aPosiadasz &2&l%{zycia::%player%}% &ażycia!" to player if arg 1 is set: send "&2&l%arg 1% &aposiada &2&l%{zycia::%arg 1%}% &ażyć!" to player command /buy:eliksirżycia: aliases: kup:eliksirżycia trigger: if player's balance >= {@koszt-zycia}: add potion named "&cEliksir Życia" to player's inventory remove {@koszt-zycia} from player's balance send "&aPomyślnie Zakupiłeś Eliksir Życia" else: send "&cNie stać cię na to! Potrzebujesz ${@koszt-zycia}" command /zycia:daj [<offlineplayer>] [<integer>]: aliases: /daj permission: zycia.daj permission message: &cBrak uprawnień. trigger: add arg-2 to {zycia::%arg-1%} send "&aDodałeś/aś &2&l%arg 2% &ażyć dla &2&l%arg 1%&a!" to player unban arg-1 set {tablist::zycia::%arg-1%} to tabListFooter({zycia::%arg-1%}) command /zycia:set [<offlineplayer>] [<integer>]: permission: zycia.daj permission message: &cBrak uprawnień. trigger: set {zycia::%arg 1%} to arg 2 send "&aGracz &2&l%arg 2% &ama &c &2&l%arg 1% &ażyć" to player unban arg-1 set {tablist::zycia::%arg-1%} to tabListFooter({zycia::%arg-1%}) command /zycia:zabierz [<offlineplayer>] [<integer>]: permission: zycia.daj permission message: &cBrak uprawnień. trigger: remove arg 2 from {zycia::%arg 1%} send "&aZabrałeś/aś &2&l%arg 2% &a&lżyć &aod &2&l%arg 1%" to player unban arg-1 set {tablist::zycia::%arg-1%} to tabListFooter({zycia::%arg-1%}) command /dajzycie [<offlineplayer>] [<integer>]: trigger: if {zycia::%player%} <= arg 2: ban player due to "&cBrak żyć!" stop remove arg 2 from {zycia::%player%} add arg 2 to {zycia::%arg-1%} send "&aDałeś/aś &2&l%arg 2% dla &2&l%arg 1%" to player unban arg 1 set {tablist::zycia::%player%} to tabListFooter({zycia::%player%}) set {tablist::zycia::%arg-1%} to tabListFooter({zycia::%arg-1%}) on consume: if player's tool is potion named "&cEliksir Życia": add 1 to {zycia::%player%} send "&aWypiłeś/aś Eliksir Życia i Dodało tobię życia" set {tablist::zycia::%player%} to tabListFooter({zycia::%player%}) wait 0.05 second execute console command "/execute run clear %player% minecraft:glass_bottle 1" on death: if victim is player: remove 1 from {zycia::%victim%} set {tablist::zycia::%victim%} to tabListFooter({zycia::%victim%}) if {zycia::%victim%} <= 0: kick player due to "&cBrak żyć! Wróć ponownie za 24 godziny" ban player due to "&cBrak żyć! Wróć ponownie za 24 godziny" for 24 hours on join: if {zycia::%player%} is not set: set {zycia::%player%} to {@startowe-zycia} if {zycia::%player%} <= 0: set {zycia::%player%} to {@startowe-zycia} set {tablist::zycia::%player%} to tabListFooter({zycia::%player%}) function tabListFooter(i: integer) :: string: {_i} > 0: loop {_i} times: if {_f} is not set: set {_f} to "&4❤" else: set {_f} to "%{_f}% ❤" return {_f} return " " command /eliksirżycia: trigger: send "&8«&c*&8»&8&m-----&8«&c*&8»&c ELIKSIR &8«&c*&8»&8&m-----&8«&c*&8»" send "&8» &4Eliksir Życia Kosztuję 50$." send "&8» &4Aby kupić taki Eliksir trzeba wpisać komende: ." send "&8» &4 /buy:eliksiżycia ." send "&8«&c*&8»&8&m-----&8«&c*&8»&c ŻYCIA &8«&c*&8»&8&m-----&8«&c*&8»" command /zycia:pomoc: trigger: send "&8«&c*&8»&8&m-----&8«&c*&8»&c ŻYCIA &8«&6*&8»&8&m-----&8«&c*&8»" send "&8» &4/zycia:pomoc &8- &7Pokazuję komendy odnośnie żyć." send "&8» &4/dajzyc &8- &7Dajesz komuś życie." send "&8» &4/zycie &8- &7Informacje ile masz żyć." send "&8» &4/eliksirżycia &8- &7Informację na temat Eliksiru Życia." send "&8» &4/buy:eliksirżycia &8- &7Kupujesz Eliksir Życia." send "&8«&c*&8»&8&m-----&8«&c*&8»&c ŻYCIA &8«&6*&8»&8&m-----&8«&c*&8»" if player has permission "script.admin": send "&8«&6*&8»&8&m-----&8«&6*&8»&c ADMIN POMOC &8«&6*&8»&8&m-----&8«&6*&8»" send "&4 /zycia:daj [Gracz] [Ilosć] &8- &7Dajesz Graczowi życia ." send "&4 /zycia:zabierz [Gracz] [Ilość] &8- &7Zabierasz Graczowi życia." send "&4 /zycia:reload &8- &7Przeładowujesz Skrypt." send "&4 /zycia:set [Gracz] [Ilosć] &8- &7Ustawiasz Graczowi Życia ." send "&8«&6*&8»&8&m-----&8«&6*&8»&c ADMIN POMOC &8«&6*&8»&8&m-----&8«&6*&8»" command /zycia:reload: trigger: if player has permission "daj.zycia": send "&8«&c*&8»&8&m-----&8«&c*&8»&c ŻYCIA &8«&c*&8»&8&m-----&8«&c*&8»" to player send "&4 &lSkript Został Przeładowany" to player send "&8«&c*&8»&8&m-----&8«&c*&8»&c ŻYCIA &8«&c*&8»&8&m-----&8«&c*&8»" to player execute console command "/sk reload zycia"
  14. devyy

    Zarzadzanie czatem gracza

    nie wiem czy ci sie przyda wlaczenie i wylaczanie ale jakby ktos nie chciał przypadkowo czegoś napisać to masz: command /chat [<text>]: trigger: if arg-1 is "wyczysc": loop 100 times: send " " send "&aTwój czat został wyczyszczony!" else if arg-1 is "wlacz": set {chat::%player%} to true send "&aCzat został włączony!" else if arg-1 is "wylacz": set {chat::%player%} to false send "&aCzat został wyłączony!" else: send "&6&lZarządzanie czatem:" send "&a/chat wyczysc &7- wyczyść swój czat" send "&a/chat wlacz &7- włącz czat" send "&a/chat wylacz &7- wyłącz czat" on chat: if {chat::%player%} is false: cancel event
  15. devyy

    Skrypt na podnoszenie

    execute console command = zchodzenie bo tepam i jakby schodzi
  16. devyy

    Skrypt na podnoszenie

    command /podnies [<player>]: trigger: set {podnoszony::%arg 1%} to arg 1 set {_c} to chest inventory with 1 row named "&6Potwierdzenie" set slot 2 of {_c} to green wool named "&aTak" set slot 6 of {_c} to red wool named "&cNie" open {_c} to {_p} send "&aCzy chcesz zostać podniesiony przez gracza &e%player%&a?" to arg 1 on inventory click: if inventory name of current inventory of player is "&6Potwierdzenie": if clicked slot is 2: close inventory of player set player's passenger to {podnoszony::*} send "&aPodniosłeś gracza %{_p}%!" to player else if clicked slot is 6: close inventory of player delete {podnoszony::*} send "&cGracz %{player}% nie chce zostać podniesiony." to player command /upusc: trigger: execute console command "minecraft:tp %player's passenger% %location of player%" send "&aUpuściłeś gracza na ziemię!" to player on vehicle exit: if {podnoszony::%player%} is set: cancel event tutaj nie jestem pewien czy działa bo te zmienne to tragedia
  17. devyy

    Skrypt na podnoszenie

    command /podnies [<player>]: trigger: set {_c} to chest inventory with 1 row named "&6Potwierdzenie" set slot 2 of {_c} to green wool named "&aTak" set slot 6 of {_c} to red wool named "&cNie" open {_c} to {_p} send "&aCzy chcesz zostać podniesiony przez gracza &e%player%&a?" to arg 1 on inventory click: if inventory name of current inventory of player is "&6Potwierdzenie": if clicked slot is 2: close inventory of player set {_p} to player set player's passenger to {_p} send "&aPodniosłeś gracza %{_p}%!" to player else if clicked slot is 6: close inventory of player send "&cGracz %{player}% nie chce zostać podniesiony." to player command /upusc: trigger: execute console command "minecraft:tp %player's passenger% %location of player%" send "&aUpuściłeś gracza na ziemię!" to player Potem ci zablokuje zchodzenie shiftem
  18. devyy

    Pytanie

    Zgaduje że masz aternosa odpowiedź to: Nie chyba że znajdziesz plugin który tworzy bota i serwer bedzie bota odczytywal jako gracza (musi sie ruszać)
  19. jego wiadomość:
  20. on placeholderapi placeholder request for the prefix "zadymacolors": if the identifier is "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9": set {_color} to "&%identifier%" if {_color} is not set: send "Niepoprawny argument" to player stop if {_color} is greater than 9 or less than 1: send "Niepoprawny argument" to player stop set {_colorcode} to {zadymacolors::%{_color}%} set {_colorcode} to replace all "&" with "" in {_colorcode} set the result to "%{_colorcode}%" nie testowane jak nie działa napisz
  21. options: czas: 10 on death: if victim and attacker is a player: if {skull::%victim%} is set: clear {skull::%victim%} execute console command "effect clear %victim% minecraft:glowing" wait 1 seconds execute console command "effect clear %victim% minecraft:slowness" wait 1 seconds execute console command "effect clear %victim% minecraft:mining_fatigue" wait 1 seconds execute console command "effect give %attacker% minecraft:regeration 10" wait 1 seconds execute console command "effect give %attacker% minecraft:absorption 900" wait 1 seconds execute console command "eco give %attacker% 200" wait 1 seconds execute console command "eco take %victim% 300" send subtitle "&eZabiłeś gracza z czaszką! &a+$200" to attacker broadcast "&aGracz &c%attacker% &azabił agresywnego gracza &6GRATULACJE! &a &aNagroda: &a+200$" else: set {skull::%attacker%} to true execute console command "effect give %attacker% minecraft:glowing 1000000" wait 1 seconds execute console command "effect give %attacker% minecraft:slowness 900" wait 1 seconds execute console command "effect give %attacker% minecraft:mining_fatigue 900" wait 3 seconds send title "&4Kara" with subtitle "Efekt wydobycia i spowolnienia trwa 15 minut" execute console command "eco take %attacker% 50" send title "☠" with subtitle "&eZabiłeś pokojowego gracza! &c-$50" to attacker broadcast "&cGracz &a%attacker% &czabił pokojowego gracza &c &ckara&c: &c-50$ &ci &cczaszka" set {cd::skull::%attacker%} to now on damage: if {skull::%attacker%} is true: if difference between {cd::skull::%attacker%} and now is bigger than {@czas} seconds: clear {skull::%attacker%} on placeholderapi request for prefix "skript": if the identifier is "czaszka": if {skull::%player%} is set: set the result to "☠" else: set the result to "" command /czaszki: trigger: send "&eLista osób z czaszką:" loop {skull::*}: add loop-index to {_s::*} send "%{_s::*}%" a to?
  22. devyy

    Skrypt spawn zombie

    every 20 minutes: spawn 1 zombie at location(0, 0, 0) set {_a} to last spawned zombie spawn 1 zombie at location(2, 0, 2) set {_b} to last spawned zombie spawn 1 zombie at location(5, 0, 5) set {_c} to last spawned zombie set name of {_a} to "&aMega Zombie" set name of {_b} to "&aMega Zombie" set name of {_c} to "&aMega Zombie" wait 5 minutes loop all zombies: if name of loop-entity is "&aMega Zombie": kill loop-entity on death of a zombie: if name of event-entity is "&aMega Zombie": drop dirt with lore "Super Dirt" at the location of the event-entity
  23. on join: if {postac::%player%} is not set: set walk speed of player to 0 apply potion of blindness to player for 999 days send "&cMusisz stworzyc postac! Uzyj komendy /postac (imie) (nazwisko) (wiek)" if {licencja::%player%} is not set: set {licencja::%player%} to false command /postac [<text>] [<text>] [<number>]: trigger: if arg-1 is not set: send "&cUżycie: /postac (imie) (nazwisko) (wiek)" stop if arg 2 is not set: send "&cUżycie: /postac (imie) (nazwisko) (wiek)" stop if arg 3 is not set: send "&cUżycie: /postac (imie) (nazwisko) (wiek)" stop set {postac::%player%} to arg-1 set {nazwisko::%player%} to arg-2 set {wiek::%player%} to arg-3 send "&aPomyślnie stworzyłeś postać!" set walk speed of player to 1 execute console command "effect clear %player%" execute console command "speed walk 1 %player%" execute console command "speed fly 1 %player%" command /dowod: trigger: loop all players in radius 10 around player: send "&f----------DOWOD----------" to loop-player send "&5Imie >> &f%{postac::%player%}%" to loop-player send "&5Nazwisko >> &f%{nazwisko::%player%}%" to loop-player send "&5Wiek >> &f%{wiek::%player%}%" to loop-player send "&5ID: &f%player%" to loop-player send "&f----------DOWOD----------" to loop-player command /usunosobe [<player>]: permission: admin.usun trigger: if arg 1 is not set: send "&cUżycie: /usunosobe (gracz)" stop delete {postac::%arg-1%} delete {nazwisko::%arg-1%} delete {wiek::%arg-1%} delete {licencja::%arg-1%} send "&aPomyślnie usunięto dane gracza %arg-1%" kick arg 1 due to "&cAdministrator zresetował ci postać!" command /licencja: trigger: if {licencja::%player%} is true: loop all players in radius 5 around player: send "&aGracz &e%executor% &aposiada licencje na broń" to loop-player send "&aPosiadasz licencję na broń." else: loop all players in radius 5 around player: send "&cGracz &e%executor% &cnieposiada licencji na broń" to loop-player send "&cNie posiadasz licencji na broń." command /sklep: trigger: set {_c} to chest inventory with 6 rows named "&bSklep" if {licencja::%player%} is true: set slot 10 of {_c} to diamond sword named "&aMiecz" with lore "Kup za 100 monet" set slot 11 of {_c} to arrow named "&aStrzała" with lore "Kup za 10 monet" else: set slot 10 of {_c} to barrier named "&cBrak licencji" with lore "Nie możesz kupić broni bez licencji" set slot 11 of {_c} to barrier named "&cBrak licencji" with lore "Nie możesz kupić amunicji bez licencji" open {_c} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&bSklep": cancel event if clicked slot is 10: if {licencja::%player%} is true: stop # kod do kupowania miecza else: send "&cNie możesz kupić broni bez licencji." if clicked slot is 11: if {licencja::%player%} is true: stop # kod do kupowania strzał else: send "&cNie możesz kupić amunicji bez licencji." command /nadajlicencje [<offlineplayer>]: trigger: set {licencja::%arg 1%} to true send "&aNadano licencję graczowi %arg 1%." to player command /usunlicencje [<offlineplayer>]: trigger: set {licencja::%arg 1%} to false send "&cUsunięto licencję graczowi %arg 1%." to player tak
  24. dokoncz kod na kupowanie broni: on join: if {postac::%player%} is not set: set walk speed of player to 0 apply potion of blindness to player for 999 days send "&cMusisz stworzyc postac! Uzyj komendy /postac (imie) (nazwisko) (wiek)" if {licencja::%player%} is not set: set {licencja::%player%} to false command /postac [<text>] [<text>] [<number>]: trigger: if arg-1 is not set: send "&cUżycie: /postac (imie) (nazwisko) (wiek)" stop if arg 2 is not set: send "&cUżycie: /postac (imie) (nazwisko) (wiek)" stop if arg 3 is not set: send "&cUżycie: /postac (imie) (nazwisko) (wiek)" stop set {postac::%player%} to arg-1 set {nazwisko::%player%} to arg-2 set {wiek::%player%} to arg-3 send "&aPomyślnie stworzyłeś postać!" set walk speed of player to 1 execute console command "effect clear %player%" execute console command "speed walk 1 %player%" execute console command "speed fly 1 %player%" command /dowod: trigger: loop all players in radius 10 around player: send "&f----------DOWOD----------" to loop-player send "&5Imie >> &f%{postac::%player%}%" to loop-player send "&5Nazwisko >> &f%{nazwisko::%player%}%" to loop-player send "&5Wiek >> &f%{wiek::%player%}%" to loop-player send "&5ID: &f%player%" to loop-player send "&f----------DOWOD----------" to loop-player command /usunosobe [<player>]: permission: admin.usun trigger: if arg 1 is not set: send "&cUżycie: /usunosobe (gracz)" stop delete {postac::%arg-1%} delete {nazwisko::%arg-1%} delete {wiek::%arg-1%} delete {licencja::%arg-1%} send "&aPomyślnie usunięto dane gracza %arg-1%" kick arg 1 due to "&cAdministrator zresetował ci postać!" command /licencja: trigger: if {licencja::%player%} is true: send "&aPosiadasz licencję na broń." else: send "&cNie posiadasz licencji na broń." command /sklep: trigger: set {_c} to chest inventory with 6 rows named "&bSklep" if {licencja::%player%} is true: set slot 10 of {_c} to diamond sword named "&aMiecz" with lore "Kup za 100 monet" set slot 11 of {_c} to arrow named "&aStrzała" with lore "Kup za 10 monet" else: set slot 10 of {_c} to barrier named "&cBrak licencji" with lore "Nie możesz kupić broni bez licencji" set slot 11 of {_c} to barrier named "&cBrak licencji" with lore "Nie możesz kupić amunicji bez licencji" open {_c} to player on inventory click: event-inventory is not player's inventory if name of event-inventory is "&bSklep": cancel event if clicked slot is 10: if {licencja::%player%} is true: stop # kod do kupowania miecza else: send "&cNie możesz kupić broni bez licencji." if clicked slot is 11: if {licencja::%player%} is true: stop # kod do kupowania strzał else: send "&cNie możesz kupić amunicji bez licencji."
  25. devyy

    Aktualizacja GUI

    function openGUI(p: player): set {_c} to chest inventory with 6 rows named "&bUstawienia" set slot 10 of {_c} to sunflower named "&cAutomatyczne przerabianie na monety" with lore "%{statuszamiana::%{_p}%}%" open {_c} to {_p} on inventory click: event-inventory is not player's inventory if name of event-inventory is "&bUstawienia": cancel event if clicked slot is 10: if {statuszamiana::%player%} is true: send "&cZamiana wyłączona" set {statuszamiana::%player%} to false else if {statuszamiana::%player%} is false: set {statuszamiana::%player%} to true send "&aZamiana włączona" openGUI(player) command /ustawienia: trigger: openGUI(player) prosze chyba działa
×
×
  • Dodaj nową pozycję...