PanAnimek
-
Ilość zawartości
406 -
Rejestracja
-
Ostatnia wizyta
-
Wygrane w rankingu
13
Odpowiedzi społeczności
-
PanAnimek odpowiedź w Linie nie dzialaja 2 został oznaczony jako odpowiedź
Spróbuj tego:
set {_list::*} to {_lore} split at "||" set {_item} to {_index} with nbt "{HideFlags:127, Unbreakable:1b, ID:%{_item}%}" named "%colored {_name}%" with lore {_list::*}
-
PanAnimek odpowiedź w Przerobienie skryptu został oznaczony jako odpowiedź
on mine: cancel drops player's gamemode is not creative set {_drops::*} to drops of event-block using player's tool loop {_drops::*}: if player has enough space for loop-value: give player loop-value else: drop loop-value at player on death: "%type of attacker%" is "player" attacker's gamemode is not creative set {_drops::*} to drops clear drops loop {_drops::*}: if attacker has enough space for loop-value: give attacker loop-value else: drop loop-value at attacker
-
PanAnimek odpowiedź w Jak wyczyścić lore item'a został oznaczony jako odpowiedź
delete lore of player's tool
-
PanAnimek odpowiedź w Czy da się żeby skrypt działał w danym świecie? został oznaczony jako odpowiedź
on quit: player's world is "world" execute player command "sethome"
-
PanAnimek odpowiedź w Funkcja w evencie nie wykonuje się. został oznaczony jako odpowiedź
Spróbuj użyć zmiennej typu number. Jeśli bardzo potrzebujesz, aby był to integer (chociaż nie powinno to niczego zmienić), to możesz potem tą zmienną parsować jako integer.
-
PanAnimek odpowiedź w Błąd w skrypcie został oznaczony jako odpowiedź
Spróbuj tak:
every 10 seconds: loop all players: if loop-player has 3 enchanted golden apple: send "&8&l>> &c&lINFORMACJA! &f&lMiałeś za dużo koxów w ekwypinku! Reszta zostaje przeniesiona do /schowek!" to loop-player remove 1 enchanted golden apple from loop-player's inventory add 1 to {schowek.kox.%loop-player%}
-
PanAnimek odpowiedź w Skrypt - zwierzęta biegną w twoją strone. został oznaczony jako odpowiedź
Masz tu rozwiązanie:
every 1 seconds: loop all players in world "zbieracz": if loop-player's tool is hay block named "&6&lSIANO": loop all living entities in radius 10 around loop-player: if loop-value-2 is not a zombie or skeleton or spider or creeper: make loop-value-2 pathfind to loop-player with speed 1 Wymaga: SkQuery-Lime
-
PanAnimek odpowiedź w zmienne grupowe problem został oznaczony jako odpowiedź
Zamień
set {_g} to event-block na
set {_g} to location of event-block
Powinno działać. Event-block w outpucie ma typ bloku (np. stone) a nie lokalizację.
-
PanAnimek odpowiedź w Pytanie o blokowanie komend został oznaczony jako odpowiedź
on command: if command is "ban": if player doesn't have permission "permisja": cancel event Tu masz z permisja
on command: if command is "ban": if arguments contains "test": cancel event Tutaj, jesli argumenty zawieraja fraze "test"
-
PanAnimek odpowiedź w Skrypt na PvP został oznaczony jako odpowiedź
options: czas: 30 #czas antylogouta w sekundach komendy: "tp" or "tpa" or "tpahere" or "spawn" or "tpaccept" #lista zablokowanych komend on damage: if victim is player: if attacker is player: set {pvp::%attacker%} to {@czas} set {pvp::%victim%} to {@czas} set {osoba::%attacker%} to victim set {osoba::%victim%} to attacker on command: if {pvp::%player%} is set: if command is {@komendy}: cancel event send "&cJestes podczas walki!" on quit: if {pvp::%player%} is set: kill player send action bar "&aZwyciezyles &6%player%" to {osoba::%player%} clear {pvp::%{osoba::%player%}%} clear {osoba::%{osoba::%player%}%} clear {pvp::%player%} clear {osoba::%player%} every 1 second: loop all players: if {pvp::%loop-player%} is set: if {pvp::%loop-player%} > 0: send action bar "&aJestes w walce! Pozostalo &7%{pvp::%loop-player%}% sekund" to loop-player add -1 to {pvp::%loop-player%} else: send acrion bar "&aNie jestes juz w walce!" to loop-player clear {osoba::%loop-player%} clear {pvp::%loop-player%} on death: if "%victim%" is "%{osoba::%attacker%}%": send action bar "&aZwyciezyles &6%victim%" to attacker clear {osoba::%victim%} clear {osoba::%attacker%} clear {pvp::%victim%} clear {pvp::%attacker%} juz, dwukropek zgubilem
-
PanAnimek odpowiedź w Variables został oznaczony jako odpowiedź
Spróbuj zamiast zmiennych (variables) zastosować opcje (options). Skrypt będzie wtedy wyglądał tak:
options: coal: 5.26 iron: 3.45 gold: 1.26 rstone: 1.22 lapis: 0.96 diax: 0.87 eme: 0.75 nether: 0.56 xp: 2 on mine of stone: if player's tool is enchanted with fortune 3: chance of 100%: add 2 xp to player chance of {@coal}%: set {s3w.%player%} to random integer between 1 and 4 give {s3w.%player%} of coal to player send "&9>> &7&7Znaleziono: &f&l%{s3w.%player%}%x &7Wegiel &f!" to the player chance of {@iron}%: set {s3z.%player%} to random integer between 1 and 4 give {s3z.%player%} of iron ore to player send "&9>> &7&7Znaleziono: &f&l%{s3z.%player%}%x Zelazo &f!" to the player chance of {@gold}%: set {s3g.%player%} to random integer between 2 and 4 give {s3g.%player%} of gold ore to player send "&9>> &7&7Znaleziono: &f&l%{s3g.%player%}%x &6Zloto &f!" to the player chance of {@rstone}%: set {s3r.%player%} to random integer between 1 and 4 give {s3r.%player%} of redstone to player send "&9>> &7&7Znaleziono: &f&l%{s3r.%player%}%x &4Redstone &f!" to the player chance of {@lapis}%: set {s3l.%player%} to random integer between 1 and 4 give {s3l.%player%} of lapis lazuli to player send "&9>> &7&7Znaleziono: &f&l%{s3l.%player%}%x &1Lazuryt &f!" to the player chance of {@diax}%: set {s3d.%player%} to random integer between 1 and 4 give {s3d.%player%} of diamond to player send "&9>> &7&7Znaleziono: &f&l%{s3d.%player%}%x &bDiament !" to the player chance of {@eme}%: set {s3e.%player%} to random integer between 1 and 4 give {s3e.%player%} of emerald to player send "&9>> &7&7Znaleziono: &f&l%{s3e.%player%}%x &aSzmaragd !" to the player chance of {@nether}%: set {s3n.%player%} to random integer between 1 and 4 give {s3n.%player%} of netherite ingot to player send "&9>> &7&7Znaleziono: &f&l%{s3n.%player%}%x &8Netheryt !" to the player stop if player's tool is enchanted with fortune 2: chance of 100%: add 2 xp to player chance of {@coal}%: set {s2w.%player%} to random integer between 1 and 3 give {s2w.%player%} of coal to player send "&9>> &7&7Znaleziono: &f&l%{s2w.%player%}%x &7Wegiel &f!" to the player chance of {@iron}%: set {s2z.%player%} to random integer between 1 and 3 give {s2z.%player%} of iron ore to player send "&9>> &7&7Znaleziono: &f&l%{s2z.%player%}%x Zelazo &f!" to the player chance of {@gold}%: set {s2g.%player%} to random integer between 2 and 3 give {s2g.%player%} of gold ore to player send "&9>> &7&7Znaleziono: &f&l%{s2g.%player%}%x &6Zloto &f!" to the player chance of {@rstone}%: set {s2r.%player%} to random integer between 1 and 3 give {s2r.%player%} of redstone to player send "&9>> &7&7Znaleziono: &f&l%{s2r.%player%}%x &4Redstone &f!" to the player chance of {@lapis}%: set {s2l.%player%} to random integer between 1 and 3 give {s2l.%player%} of lapis lazuli to player send "&9>> &7&7Znaleziono: &f&l%{s2l.%player%}%x &1Lazuryt &f!" to the player chance of {@diax}%: set {s2d.%player%} to random integer between 1 and 3 give {s2d.%player%} of diamond to player send "&9>> &7&7Znaleziono: &f&l%{s2d.%player%}%x &bDiament !" to the player chance of {@eme}%: set {s2e.%player%} to random integer between 1 and 3 give {s2e.%player%} of emerald to player send "&9>> &7&7Znaleziono: &f&l%{s2e.%player%}%x &aSzmaragd !" to the player chance of {@nether}%: set {s2n.%player%} to random integer between 1 and 3 give {s2n.%player%} of netherite ingot to player send "&9>> &7&7Znaleziono: &f&l%{s2n.%player%}%x &8Netheryt !" to the player stop if player's tool is enchanted with fortune 1: chance of 100%: add 2 xp to player chance of {@coal}%: set {s1w.%player%} to random integer between 1 and 2 give {s1w.%player%} of coal to player send "&9>> &7&7Znaleziono: &f&l%{s1w.%player%}%x &7Wegiel &f!" to the player chance of {@iron}%: set {s1z.%player%} to random integer between 1 and 2 give {s1z.%player%} of iron ore to player send "&9>> &7&7Znaleziono: &f&l%{s1z.%player%}%x Zelazo &f!" to the player chance of {@gold}%: set {s1g.%player%} to random integer between 1 and 2 give {s1g.%player%} of gold ore to player send "&9>> &7&7Znaleziono: &f&l%{s1g.%player%}%x &6Zloto &f!" to the player chance of {@rstone}%: set {s1r.%player%} to random integer between 1 and 2 give {s1r.%player%} of redstone to player send "&9>> &7&7Znaleziono: &f&l%{s1r.%player%}%x &4Redstone &f!" to the player chance of {@lapis}%: set {s1l.%player%} to random integer between 1 and 2 give {s1l.%player%} of lapis lazuli to player send "&9>> &7&7Znaleziono: &f&l%{s1l.%player%}%x &1Lazuryt &f!" to the player chance of {@diax}%: set {s1d.%player%} to random integer between 1 and 2 give {s1d.%player%} of diamond to player send "&9>> &7&7Znaleziono: &f&l%{s1d.%player%}%x &bDiament !" to the player chance of {@eme}%: set {s1e.%player%} to random integer between 1 and 2 give {s1e.%player%} of emerald to player send "&9>> &7&7Znaleziono: &f&l%{s1e.%player%}%x &aSzmaragd !" to the player chance of {@nether}%: set {s1n.%player%} to random integer between 1 and 2 give {s1n.%player%} of netherite ingot to player send "&9>> &7&7Znaleziono: &f&l%{s1n.%player%}%x &8Netheryt !" to the player stop if player's tool is pickaxe: chance of 100%: add 2 xp to player chance of {@coal}%: give a coal to player send "&9>> &7&7Znaleziono: &f&l1x &7Wegiel !" to the player chance of {@iron}%: give a iron ore to player send "&9>> &7&7Znaleziono: &f&l1x Zelazo !" to the player chance of {@gold}%: give a gold ore to player send "&9>> &7&7Znaleziono: &f&l1x &6Zloto !" to the player chance of {@rstone}%: give a redstone to player send "&9>> &7&7Znaleziono: &f&l1x &4Redstone !" to the player chance of {@lapis}%: give a lapis lazuli to player send "&9>> &7&7Znaleziono: &f&l1x &1Lazuryt !" to the player chance of {@diax}%: give a diamond to player send "&9>> &7&7Znaleziono: &f&l1x &bDiament !" to the player chance of {@eme}%: give a emerald to player send "&9>> &7&7Znaleziono: &f&l1x &aSzmaragd !" to the player chance of {@nether}%: give a netherite ingot to player send "&9>> &7&7Znaleziono: &f&l1x &8Netheryt !" to the player stop
-
PanAnimek odpowiedź w Zmienna gracza. został oznaczony jako odpowiedź
command /zmienna [<offlineplayer>] [<text>]: trigger: set {zmienna::%arg 1%} to arg 2 send "Zmienna gracza %arg 1% zostala zmieniona na: %arg 2%" command /czysc [<offlineplayer>]: trigger: clear {zmienna::%arg 1%} send "Zmienna gracza %arg 1% wyczyszczona!"
-
PanAnimek odpowiedź w Skrypt na Ban'a został oznaczony jako odpowiedź
Pamiętaj, że zmienne też umieszczasz w %%, np
send "%{ban::%player%}%" A więc Twój kod będzie działał, jeśli będzie wyglądał on tak:
command /ban [<offlineplayer>] [<text>]: trigger: if arg-1 is not set: send "&bPoprawne uzycie: &f&l/ban <gracz> <powod>&b!" to player else if arg-2 is not set: send "&bPoprawne uzycie: &f&l/ban <gracz> <powod>&b!" to player else if arg-1 is set: if arg-2 is set: send "&bGracz: &f&l%arg-1% &bzostal zbanowany z powodem: &f&l%arg-2% &bprzez: &f&l%player%&b!" to all players set {ban::%arg-1%} to true set {banplayer::%arg-1%} to player set {banreason::%arg-1%} to arg-2 kick arg-1 due to "&bZostales zbanowany! %nl% %nl% &bInformacje o banie: %nl% &f&lTwoj nick: %arg-1% %nl% &f&lZbanowany przez: %{banplayer::%arg-1%}% %nl% &f&lZbanowany za: %{banreason::%arg-1%}% %nl% &f&lZbanowany na: zawsze %nl% %nl% &bKup unbana na: &f&lIcePVP.pl&b!" on join: if {ban::%player%} is true: kick player due to "&bZostales zbanowany! %nl% %nl% &bInformacje o banie: %nl% &f&lTwoj nick: %player% %nl% &f&lZbanowany przez: %{banplayer::%player%}% %nl% &f&lZbanowany za: %{banreason::%player%}% %nl% &f&lZbanowany na: zawsze %nl% %nl% &bKup unbana na: &f&lIcePVP.pl&b!"
-
PanAnimek odpowiedź w Komenda został oznaczony jako odpowiedź
options: czas: 30 seconds on command: if command is "fly": if {fly::%player%} is not set: set {fly::%player%} to now stop set {_check} to difference between {fly::%player%} and now if {_check} is greater than ("{@czas}" parsed as timespan): set {fly::%player%} to now stop cancel event send "&cMusisz odczekac &730 sekund &czanim ponownie tego uzyjesz!"
-
PanAnimek odpowiedź w Wypadanie czesci itemow z graczy po smierci. został oznaczony jako odpowiedź
on death: if victim is player: set {_loc} to location of victim set {_x} to 0 loop 39 times: if slot {_x} of victim is not air: add {_x} to {_sloty::*} add 1 to {_x} set {_ilosc} to size of {_sloty::*} set {_ilosc} to (10 * {_ilosc}) / 100 set {_ilosc} to rounded up {_ilosc} loop {_ilosc} times: set {_i} to "%random element out of {_sloty::*}%" remove {_i} from {_sloty::*} set {_item} to slot ({_i} parsed as integer) of victim add {_item} to {_dropy::*} drop {_item} at {_loc} set slot ({_i} parsed as integer) of victim to air send "%{_i}%" to victim To może coś takiego? 🤔
-
PanAnimek odpowiedź w Skrypt na statystyki w gui ( 1.15.2 ) został oznaczony jako odpowiedź
Prosz, masz od razu składowanie danych w plikach YAML.
-
PanAnimek odpowiedź w HARMONOGRAM ZADAŃ został oznaczony jako odpowiedź
every 1 second: if "%hour%" is "12:00": execute console command "fajna komenda" if "%hour%" is "14:00": execute console command "inna fajna komenda" Możesz to zrobić w taki sposób
-
PanAnimek odpowiedź w Jadalny zielony barwnik został oznaczony jako odpowiedź
options: jedzenie: 3 #ilosc najedzenia obrazenia: 1 #ilosc damage on rightclick: if player's tool is green dye: remove 1 of player's tool from player's inventory play sound "ENTITY_GENERIC_EAT" with volume 10 for player damage player by {@obrazenia} hearts add {@jedzenie} to player's hunger
