Skocz do zawartości

DαrϰVεnuς

Użytkownik
  • Ilość zawartości

    881
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    1

Treść opublikowana przez DαrϰVεnuς

  1. Rzeczywiście funkcja troszkę się buguje, lecz znalazłem inny sposób: on quit: execute player command "/zabijkonia %player%" command /zabijkonia [<player>]: trigger: loop all entities: if loop-entity is horse: if name of loop-entity is "%name of arg 1%": kill loop-entity
  2. Skoro już nazywasz gonickiem gracza, to aby go zabić po wyjściu robisz: loop all entities: if loop-entity is horse: if name of loop-entity is "%player%": kill loop-entity A więc, skoro nadajesz koniu imię, to po co go zapisywać do zmiennej, skoro możesz użyć kody (patrz wyżej)? Jeżeli chodzi o split, to bardzo przydatna funkcja, jeżeli chcesz się czegoś o niej dowiedzieć, to napisz nowy temat.
  3. command /spawnnpc [<text>]: trigger: if arg 1 is set: spawn 1 villager at location of player set name of last spawned entity to "%arg 1%" add "%arg 1%" to {npcs::*} stop else: send "Podaj nazwe NPC." stop on rightclick: if clicked entity is villager: if {npcs::*} contain "%coloured name of clicked entity": execute player command "/tester" stop on damage: if victim is villager: if {npcs::*} contain "%coloured name of victim": if player isn't op: cancel event on death: if victim is villager: if {npcs::*} contain "%coloured name of victim": remove "%coloured name of victim%" from {npcs::*} Nie testowane.
  4. herhor wychodzi z wprawy B) To był twój kod B) ~ herhor on place: if event-block is diamond block: if "%region at location of placed block%" is empty: set {_x} to location of block 100 meters north 100 meters west event-block set {_y} to location of block 100 meters south 100 meters east event-block set {_w} to player's world #ewentualnie world at player create wg region "region%player%" between {_x} and {_y} in world {_w} send "Stworzono region 100x100" else: send "Na tej lokalizacji istnieje juz region." if event-block is redstone block: if "%region at location of placed block%" contain "region%player%": set {_x} to location of block 125 meters north 125 meters west event-block set {_y} to location of block 125 meters south 125 meters east event-block set {_w} to player's world #ewentualnie world at player delete wg region "region%player%" in world {_w} create wg region "region%player%" between {_x} and {_y} in world {_w} send "Stworzono region 125x125" else: send "Ten region jest wolny lub nie nalezy do Ciebie."Dziwnie napisane, może nie działać.
  5. Nie można dodać potwora/zwierzątka do zmiennej, ponieważ owy znika. Możesz aby to zastąpić zmienną typu: {zmienna} = "typ:zombie nazwa:&4Krokodyl" I potem użyć split.
  6. @PanFrejk Nie, nie można zmienić opcji przez komendę, jeżeli chcesz to robić, to ustawiasz zwykłą zmienną: variables: {zloto::drop} = 20.0 on break of stone: chance of {zloto::drop}%: drop 1 gold ingot at event-block command /drop: trigger: add 30.0 to {zloto::drop}
  7. Jak ustawione 20%, to 20%, a nie 4%, to już zależy od twojego szczęścia. Ew. zmień {zloto::%player%} = 20 na 20.0
  8. Pomysł fajny, wykonanie okropne, ten skrypt można skrócić min. o 60% (jak i nie więcej). Na chłopski rozum: Amatorszczyzna. Dodatkowo ten kowal to powinien być NPC, a nie komendą.
  9. DαrϰVεnuς

    Xx

    2h na uzupełnienie brakujących informacji w temacie.
  10. command /case [<text="null">] [<text>] [<text>]: executable by: console trigger: if player has permission "case.*": if arg 1 is not "add" or "remove" or "edit" or "give" or "list" or "method": send "{@tag}" send "&6/case add <name> &8- &7Dodaje nowa skrzynke." send "&6/case remove <name> &8- &7Usuwa skrzynke." send "&6/case edit <name> &8- &7Edytuje zawartosc skrzyni." send "&6/case give <name> <player> &8- &7Daje nam klucz i skrzynie." send "&6/case list &8- &7Lista skrzyn w gui." if arg 1 is "add": if arg 2 is set: loop {case::chestlist: :*}: if loop-value is arg 2: send "{@tag} &7Taka skrzynia juz istnieje!" stop add arg 2 to {case::chestlist: :*} send "{@tag} &7Dodano skrzynie o nazwie &6%arg 2%&7." else: send "&6/case add <name>" if arg 1 is "remove": if arg 2 is set: loop {case::chestlist: :*}: if loop-value is arg 2: remove arg 2 from {case::chestlist: :*} delete {case::%arg 2%::itemlist: :*} send "{@tag} &7Usunieto skrzynie o nazwie &6%arg 2%&7." stop send "{@tag} &7Taka skrzynia nie istnieje!" else: send "&6/case remove <name>" if arg 1 is "edit": if arg 2 is set: loop {case::chestlist: :*}: if loop-value is arg 2: function "edit" {player and arg 2} stop send "{@tag} &7Taka skrzynia nie istnieje!" else: send "&6/case additem <name>" if arg 1 is "give": if arg 2 is set: loop {case::chestlist: :*}: if loop-value is arg 2: if arg 3 is set: set {_player} to arg 3 parsed as offlineplayer else: set {_player} to player if {_player} is online: set {_lore} to "%{case::%arg 2%::itemlist: :*}%" replace all ", " with "|| &8- &c" in {_lore} replace all "and " with "|| &8- &c" in {_lore} add 5 chest named "&6%arg 2%" with lore " || &6W tej skrzyni mozesz zdobyc: || || &8- &c%{_lore}% || " to {_player}'s inventory add 5 tripwire hook named "&6Klucz do skrzyni &c%arg 2%" to {_player}'s inventory stop send "{@tag} &7Taka skrzynia nie istnieje!" else: send "&6/case givechest <name>" if arg 1 is "list": function "list" {player}; if arg 1 is "method": set {_player} to arg 3 parsed as player if {_player}'s inventory contains tripwire hook named "&6Klucz do skrzyni &c%arg 2%": set {_lore} to "%{case::%arg 2%::itemlist: :*}%" replace all ", " with "|| &8- &c" in {_lore} replace all "and " with "|| &8- &c" in {_lore} if {_player}'s inventory contains chest named "&6%arg 2%" with lore " || &6W tej skrzyni mozesz zdobyc: || || &8- &c%{_lore}% || ": function "opening" {{_player} and arg 2}; else: send "{@tag} &7Nie posiadasz tej skrzyni!" to {_player} else: send "{@tag} &7Nie posiadasz klucza do tej skrzyni!" to {_player}
  11. command /enchant <integer>: trigger: set {_} to "sharpness %arg 1%" parsed as enchantment type enchant player's tool with {_}
  12. Poradnik krótki, nie pomocny, chaotycznie napisany, nawet kod nie jest w code, nie mówiąc o tych "<tab>". W prawdzie, gdybym był nowy nic bym nie zrozumiał. Nawet nie opisałeś co robi poszczególna linijka.
  13. Musisz po nazwie komendy wpisać taką linijke: executable by: console Przykład w praktyce: command /dajmiecz <player>: executable by: console trigger: give 1 diamond sword to arg 1 stop Na dodatek w konsoli może się coś lekko bugować i zamiast wpisywać np.: "/dajmiecz <twój_nick>" wpisz: "dajmiecz <twój_nick>" Jeżeli chcesz, aby komendy mogła używać konsola jak i gracze, to robisz w ten sposób: executable by: players and console Na przyszłość dawaj kod jaki masz, wtedy łatwiej będzie nam pomóc.
  14. Poprawione: command /prefix [<offlineplayer>] <text>: permission: prefix.set permission message: &4Nie masz do tego uprawnien! trigger: if arg 1 is set: set {prefix::%player%} to arg 2 send "Ustawiono prefix dla gracza %arg 1%." stop else: send "Musisz podac nick gracza." stop command /surffix [<offlineplayer>] <text>: permission: suffix.set permission message: &4Nie masz do tego uprawnien! trigger: if arg 1 is set: set {suffix::%player%} to arg 2 send "Ustawiono suffix dla gracza %arg 1%." stop else: send "Musisz podac nick gracza." stop on chat: cancel event set {_message} to "%coloured {prefix::%player%}% &f%coloured name of player% %coloured {suffix::%player%}%: &f%message%" replace all "<none>" with "" in {_message} broadcast "%{_message}%"
  15. @Tajemniczy Nie, nazwa tematu ma swój punkt, a treść swój. Treść zawiera IP, lecz nie zawiera nazwy.
  16. @Tajemniczy Pierwszy punkt na liście, brak.
  17. @Ramzes45 http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html Strona autora, nie daje skanu.
  18. Witoj, co do regulaminu, to jest błąd po wprowadzeniu SSL na stronę, do tej pory staramy się wyłapać te błędy. Dzięki.
  19. Program mówi, że nie może znaleźć ścieżki do twojej Javy, spróbuj ją usunąć i zainstalować od nowa. Ew. pobierz Jave 7 i 8.
  20. Masz 2h na uzupełnienie treści tematu.
  21. on place: if placed block is diamond block: if region at location of placed block is not set: run player command "//pos 1" as op run player command "//pos 2" as op wait tick run player command "//expand 100 100 up" as op wait 1 tick run player command "/rg define reg.%player%" as op send "Stworzono region 100x100" stop else: send "Na tej lokalizacji istnieje juz region." stop if placed block is redstone block: if region at location of placed block is "reg.%player%": run player command "rg remove reg.%player%" as op wait tick run player command "//pos 1" as op run player command "//pos 2" as op wait tick run player command "//expand 125 125 up" as op wait 1 tick run player command "/rg define reg.%player%" as op send "Stworzono region 125x125" stop else: send "Ten region jest wolny lub nie nalezy do Ciebie." stop Jak nie zadziała to mogę spróbować przez WS.
  22. on spawn: if event-entity is zombie: if "%regions at event-entity%" contains "Test": set name of event-entity to "&5Rycerz" set max health of event-entity to 250 heal event-entity
  23. Automatycznie wygenerowana wiadomość. Ten temat został zamknięty.
  24. DαrϰVεnuς

    Skrypt Na Exp Z Mobów

    on death: attacker is a player: if victim is a zombie: if name of victim is "Zombie [Poziom 5]": give 5 exp to attacker if name of victim is "Zombie [Poziom 10]": give 10 exp to attacker
  25. on chat: if message contain "reklama" or "serwer" or "ench" or "pl" or "maxc" or "hostmc" or "craft": cancel event kick player due to "Reklama" broadcast "Gracz %player% zostal wyrzucony za reklame." stop Ps; W zdaniu pierwsze słowo zaczyna się dużą literą, kolejne pisze się z małej.
×
×
  • Dodaj nową pozycję...