Skocz do zawartości

xAxee

Zasłużony
  • Ilość zawartości

    6123
  • Rejestracja

  • Ostatnia wizyta

  • Wygrane w rankingu

    232

Treść opublikowana przez xAxee

  1. xAxee

    Skrypt na drop

    podaj błędy, i wersje skripta
  2. xAxee

    Skrypt na drop

    o którym skrypcie mówisz
  3. xAxee

    Skrypt Na Drop

    faktycznie 2.4 dzięki za poprawienie ale to nie zmienia faktu że na wersji autora już powinno działać
  4. xAxee

    Skrypt na drop

    on load: clear {drop::items::*} #set {drop::items::<item>} to <procent> set {drop::items::diamond} to 1 set {drop::items::emerald} to 0.5 set {drop::items::coal} to 3 function getStatus(p: player, i: text) :: text: return "&aWlaczony" if {drop::status::%{_p}%::%{_i}%} is true return "&cWylaczony" function getStatusBool(p: player, i: text) :: boolean: return true if {drop::status::%{_p}%::%{_i}%} is true return false command /drop [<text>]: trigger: open chest inventory with 3 row named "&6Drop" to player set {_slot} to 0 loop {drop::items::*}: set slot {_slot} of player's current inventory to (loop-index parsed as item) named "&e%loop-index%" with lore "&7Szansa: &e%loop-value%" and "&7Status: %getStatus(player, loop-index)%" add 1 to {_slot} on inventory click: if name of player's current inventory is "&6Drop": if clicked inventory is player's inventory: stop cancel event set {_slot} to 0 if (size of {drop::items::*} -1 ) < {_slot}: stop loop {drop::items::*}: if index of clicked slot is {_slot}: set {drop::status::%player%::%loop-index%} to !{drop::status::%player%::%loop-index%} set slot {_slot} of player's current inventory to (loop-index parsed as item) named "&e%loop-index%" with lore "&7Szansa: &e%loop-value%" and "&7Status: %getStatus(player, loop-index)%" stop add 1 to {_slot} on mine: if event-block is not stone: stop loop {drop::items::*}: set {_fortune} to level of fortune of player's tool + 1 * 0.5 set {_chance} to loop-value + {_fortune} send "%{_chance}%" chance of {_chance}%: drop (loop-index parsed as item) at event-block
  5. xAxee

    Skrypt Na Drop

    Zamiast anulować event i usuwać blok możesz użyć efektu który w końcu został dodany w skripcie 2.2 czyli cancel drops Nie rób każdego dropu e osobnym evencie... jeden starczy. Jak zrobisz wszystko w jednym to starczy jak zrobisz na samym początku ifa do sprawdzania uprawnienia no i 4 ify do fortunki, a nie do kazdego dropu osobno.
  6. W configu skripta można włączyć linki.
  7. xAxee

    Skrypt po smierci teleport

    Autor raczej nie rozumiał tego kodu i nie wiedział ;/
  8. xAxee

    Skrypt

    function r(n: number, r: integer) :: number: return (round up {_n}/{_r})*{_r} on join: if {wykopane::%player%} is not set: set {wykopane::%player%} to 0 if {postawione::%player%} is not set: set {postawione::%player%} to 0 on mine of stone: add 1 to {wykopane::%player%} if {wykopane::%player%} > 0: if mod({wykopane::%player%},1000) is 0: send "Wykonales zadanie: wykop {wykopane::%player%} blokow!" give 1 diamond to the player on place: add 1 to {postawione::%player%} if {postawione::%player%} > 0: if mod({postawione::%player%},1000) is 0: send "Wykonales zadanie: postaw {postawione::%player%} blokow!" give 1 diamond to the player command /zadanie [<text>]: trigger: send "Wykopane: %{wykopane::%player%}%/r({wykopane::%player%}, 1000)" send "Postaw: %{postawione::%player%}%/r({postawione::%player%}, 1000)"
  9. Problem został rozwiązany.
  10. xAxee

    Skrypt po smierci teleport

    options: time: 600 on respawn: teleport player to location at (0, 0, 0) set {odliczanie::%player%} to {@time} while {odliczanie::%player%} > 0: if player is offline: exit loop remove 1 from {odliczanie::%player%} send "remove" to console if {odliczanie::%player%} is 0: teleport player to location at (0, 0, 0) clear {odliczanie::%player%} exit loop wait 1 second on join: {odliczanie::%player%} is set while {odliczanie::%player%} > 0: if player is offline: exit loop remove 1 from {odliczanie::%player%} send "remove" to console if {odliczanie::%player%} is 0: teleport player to location at (0, 0, 0) clear {odliczanie::%player%} exit loop wait 1 second @Kormic w twoim kodzie gdy gracz zginął i zrobił reloga pętla wykonywała się dwa razy, i w evencie dołączania i w evencie śmierci
  11. xAxee

    Skrypt na TOP czasu

    Problem został rozwiązany.
  12. xAxee

    Skrypt na TOP czasu

    function translate(return: text) :: text: set {_ang::*} to ("years" and "year", "months", "month", "days", "day", "hours" , "hour", "minutes" , "minute", "seconds", "second", "and") set {_pl::*} to ("lata" and "rok", "miesiecy", "miesiac", "dni", "dzien", "godzin", "godzina", "minut", "minuta", "sekund", "sekunda", "i") loop {_ang::*}: replace all loop-value with {_pl::%loop-index%} in {_return} return {_return} function translateList(r: texts) :: texts: loop {_r::*}: add translate(loop-value) to {_return::*} return {_return::*} function createTop(name: string, size: integer, format: string="[P] - [V]") :: strings: set {_indices::*} to all indices of {%{_name}%::*} set {_index} to 1 if {_size} = 0: return "" if {_size} < 0: set {_reversed} to true set {_size} to ({_size} * (-1)) loop {_indices::*}: if {%{_name}%::%loop-value%} = number or timespan or date: set {_values::%{_index}%} to {%{_name}%::%loop-value%} set {_indexes::%{_index}%} to "%loop-value%" add 1 to {_index} if {_size} > (size of {_indexes::*}): set {_size} to (size of {_indexes::*}) loop {_size} times: loop {_values::*}: if {_max} is not set: set {_max} to loop-value-2 set {_index} to loop-index else: if {_reversed} is not true: if loop-value-2 > {_max}: set {_max} to loop-value-2 set {_index} to loop-index else: if loop-value-2 < {_max}: set {_max} to loop-value-2 set {_index} to loop-index set {_var} to {_format} replace "[VALUE]" and "[V]" with "%{_max}%" in {_var} replace "[INDEX]" and "[I]" with "%loop-number%" in {_var} replace "[PLAYER]" and "[P]" with {_indexes::%{_index}%} in {_var} add {_var} to {_return::*} delete {_indexes::%{_index}%}, {_values::%{_index}%}, {_max} and {_index} return {_return::*} on join: if {time::%name of player%} is not set: set {time::%name of player%} to time played of player on disconnect: set {time::%name of player%} to time played of player command /topki [<text>]: trigger: open chest with 6 rows named "TEST" to player wait 3 tick format slot 16 of player with clock named "Czas gry" with lore translateList(createTop("time", 10, "&f &f[index]. &f[player]&f: &e[value]")) to be unstealable command /top [<text>]: trigger: loop all players: set {time::%name of loop-player%} to time played of loop-player send "&fTopka czasu online:" send translateList(createTop("time", 10, "&f &f[index]. &f[player]&f: &e[value]"))
  13. ("nazwa" parsed as offline player)'s skull
  14. xAxee

    Skrypt na setblock

    on any move: if block under player is air: stop set block under player to dirt
  15. xAxee

    Skrypt na setblock

    Trzeba chodzić po jakimś konkretnym bloku?
  16. options: # Czym jest rzucane TNT na twoim serwerze rzucane-item: tnt named "&cRzucane TNT" # Czas cooldownu (odnowienia) rzucane-cooldown: 20 seconds # Wiadomość wysyłana przy próbie zbyt szybkiego wyrzucenia TNT (gdy cooldown jeszcze obowiązuje) rzucane-cooldownMessage: "&cNie możesz jeszcze użyć rzucanego TNT!" # Czas odliczania rzucane-countdown: 10 seconds # Wiadomość przy próbie zbyt szybkiego wyrzucenia TNT (gdy odliczanie trwa) rzucane-countingMessage: "&cOdliczanie już trwa!" # Wiadomość przy odliczaniu rzucane-countdownMessage: "&cRzucane TNT zostanie &6wystrzelone za &e%{@rzucane-countdown} - loop-number%&6..." # Moc wyrzutu TNT (może być to liczba po przecinku, np. 0.8) rzucane-force: 0.5 on place: player's tool is {@rzucane-item} cancel event on right click: player's tool is {@rzucane-item} if {countdown::rzucaneTnt::%player%} is set: send {@rzucane-countingMessage} to player stop if {cooldown::rzucaneTnt::%player%} is set: difference between {cooldown::rzucaneTnt::%player%} and now is less than {@rzucane-cooldown} send {@rzucane-cooldownMessage} to player stop set {countdown::rzucaneTnt::%player%} to true loop 10 times: if player's tool is not {@rzucane-item}: clear {countdown::rzucaneTnt::%player%} stop send action bar {@rzucane-countdownMessage} to player set {cooldown::rzucaneTnt::%player%} to now clear {countdown::rzucaneTnt::%player%} remove {@rzucane-item} from player shoot a tnt from player at speed {@rzucane-force} on load: register new shaped recipe for {@rzucane-item} using tnt, tnt, tnt, tnt, tnt, tnt, tnt, tnt, tnt
  17. xAxee

    Drop exp

    Problem został rozwiązany.
  18. xAxee

    Drop exp

    Możesz dodać do tego szanse: on mine of stone: chance of 10%: give 1 xp to the player
  19. xAxee

    Skrypt na TOP czasu

    Zaktualizuj skrypt bo widzę że jest to stary skrypt Pana Marudy i jeżeli chcesz te godziny i minuty to do zmiennych zapisuj po prostu time span a nie unix on disconnect: set {time::%name of player%} to time played of player command /top [<string>]: trigger: set {_offline::*} to all offline players loop all players: set {time::%name of loop-player%} to time played of loop-player send "&fTopka czasu online:" send createTop("time", 10, {_offline::*}, "&f &f[index]. &f[player]&f: &e[value]")
  20. xAxee

    Turbodrop

    W komendzie nie masz zdefiniowanego argumentu. Jak wywali serwer gracz będzie miał turbodrop na zawsze. To turbodrop jest dla gracza czy dla serwera? Bo zmienna a wiadomości pokazują co innego. command /turbodropall: if player has permission "Turbo.Active": trigger: ten if jest kodem a kod dajemy po triggerze, chyba że chcesz ustawić permisje to daj permission: uprawnienie np: command /turbodropall: permission: Turbo.Active trigger:
  21. xAxee

    drop

    Ten temat został zamknięty.
  22. xAxee

    Odbieranie LB

    Problem został rozwiązany.
  23. Problem został rozwiązany.
  24. register new shaped recipe for %item% using %item%, %item%, %item%, %item%, %item%, %item%, %item%, %item%, %item%
  25. xAxee

    Fortune

    Problem został rozwiązany.
×
×
  • Dodaj nową pozycję...