-
Ilość zawartości
999 -
Rejestracja
-
Ostatnia wizyta
-
Wygrane w rankingu
23
Treść opublikowana przez Shooterowy
-
command /gui: trigger: set {_gui} to chest with 1 row named "&1GUI" set slot 4 of {_gui} to sponge named "&6Niespodzianka" open {_gui} to player on inventory click: if name of clicked inventory is "&1GUI": cancel event if type of clicked inventory is chest inventory: if index of clicked slot is 4: if click type is left mouse button: add dirt to player else if click type is left mouse button with shift: add iron ingot to player else if click type is right mouse button: add glass to player else if click type is right mouse button with shift: add coal to player
-
Skript na NIEWYPADANIE danego itemu o danej nazwie po śmierci.
Shooterowy odpowiedział(a) na Dafitovv pytanie w Zlecenia
options: nazwa: "&d&lEpicka Sniezka" on gamemode change: if player's gamemode is spectator: loop items in player's inventory: if name of loop-item is {@nazwa}: add loop-item to {items::%player%::*} else if player's gamemode is survival: add {items::%player%::*} to player clear {items::%player%::*} Nie wiem czy zadziała, bo plugin, który czyści ekwipunek po śmierci może usunąć itemy zanim skrypt zapisze je do zmiennej. -
Problem z dropem na %attacker%
Shooterowy odpowiedział(a) na piotrus131102 pytanie w Pytania i problemy
Zamień wyrażenia zadawania obrażeń damage {_Moby::*} by {ZRodzka2.%player%} na make player damage {_Moby::*} by {ZRodzka2.%player%} -
Skript na NIEWYPADANIE danego itemu o danej nazwie po śmierci.
Shooterowy odpowiedział(a) na Dafitovv pytanie w Zlecenia
Wrzuciłem na code.skript.pl Przetestowałem u siebie, wszystko działa. -
Skript na NIEWYPADANIE danego itemu o danej nazwie po śmierci.
Shooterowy odpowiedział(a) na Dafitovv pytanie w Zlecenia
options: nazwa: "&d&lEpicka Sniezka" on death: if victim is a player: loop drops: if name of loop-item is {@nazwa}: add loop-item to {items::%victim%::*} remove loop-item from drops on respawn: wait a tick add {items::%player%::*} to player clear {items::%player%::*} -
Zamiana domyślnej komendy na własną
Shooterowy odpowiedział(a) na matiksjea pytanie w Pytania i problemy
command /mag [<text>] [<text>] [<text>]: trigger: if arg 1 is "dodaj": if arg 2 is set: if arg 3 is set: execute player command "/arm addmember %arg 2% %arg 3%" -
Po teleportacji nie da się atakować gracza przez 2 sekundy.
Shooterowy odpowiedział(a) na masterekkkk pytanie w Pytania i problemy
Jeśli korzystasz z pluginu Essentials to w configu jest opcja, która daje nieśmiertelność po teleportacji komendą teleport-invulnerability: 4 Jeśli chcesz wyłączyć to ustaw na 0. -
spróbuj if index of clicked slot is between 0 and 35:
-
zamień loop-zombies na loop-entity
-
masz starą wersję Skript
-
Inventory click TusKe Skript - problem
Shooterowy odpowiedział(a) na TheFightaz pytanie w Pytania i problemy
Skrypt za szybko sprawdza kliknięty slot on inventory click: if event-inventory's name is "&c&lCrafts&a&lMC&f&l.pl &8| &6&lNAPRAWA": wait a tick if event-slot is 12: set {_item} to slot 12 of player's current inventory if {_item} is any tool: send "tool" to event-player set slot 14 of player's current inventory to diamond else: set slot 14 of player's current inventory to air if {_item} is any sword: send "sword" to event-player set slot 14 of player's current inventory to diamond -
W pliku plugins/Essentials/config.yml U mnie jest to linijka 549 zamień false na true
-
Problem w skrypcie z punktami
Shooterowy odpowiedział(a) na __No__Name_ pytanie w Pytania i problemy
on death: victim is a player attacker is a player add 100 to {punkty::%attacker%} remove 100 from {punkty::%victim%} send "&7>> &aGracz &4%attacker% &azabił gracza &4%victim% &a100 punktów" to all players -
on rightclick on player skull: delete event-block wait a tick set event-block to player's skull if {holo::%event-block%} is set: unregister hologram {holo::%event-block%} clear {holo::%event-block%} set {_holoskull} to new hologram at location 0.4 meter above event-block add text "&6%player%" to hologram {_holoskull} set {holo::%event-block%} to {_holoskull} on break: if event-block is player skull: if {holo::%event-block%} is set: unregister hologram {holo::%event-block%} Wymagane HolographicDisplays i HolographicDisplaysAddon
-
Jak dodawać liczby po ,? np. 0.10
Shooterowy odpowiedział(a) na Karol123123123 pytanie w Pytania i problemy
hmm, u mnie działa taki kod (przykład) command /test: trigger: loop 10 times: if loop-number is 5: set {_n} to loop-number exit loop send "%{_n}%" add 0.10 to {_n} send "%{_n}%" Sprawdź u siebie, jak nie działa to spróbuj z inna wersją skript P.S. ustawiasz zmienną {_SRObrazenia} a w temacie masz zmienną {_Obrazenia}? -
Jak dodawać liczby po ,? np. 0.10
Shooterowy odpowiedział(a) na Karol123123123 pytanie w Pytania i problemy
Pokaż kod od ustawiania zmiennej {_Obrazenia} -
ID przedmiotów nie są już wspierane, używaj nazw (w tym przypadku black glass pane)
-
command /utworzkod [<text>] [<text>] [<text>]: permission: utworz.kod permission message: &cNie masz uprawnień do tej komendy. trigger: if arg 1 is not set: send "&cPoprawne użycie: /utworzkod <kod> <ilość użyć> <komenda>" send "&7Jeżeli chcesz, aby komenda była wykonana przez konsolę, nie dodawaj do niej znaku '/'." stop if {code::%arg 1%::usages} is set: send "&cTaki kod już istnieje." stop if arg 2 parsed as integer is not set: send "&cPoprawne użycie: /utworzkod <kod> <ilość użyć> <komenda>" send "&7Jeżeli chcesz, aby komenda była wykonana przez konsolę, nie dodawaj do niej znaku '/'." stop if arg 3 is not set: send "&cPoprawne użycie: /utworzkod <kod> <ilość użyć> <komenda>" send "&7Jeżeli chcesz, aby komenda była wykonana przez konsolę, nie dodawaj do niej znaku '/'." stop set {code::%arg 1%::usages} to arg 2 parsed as integer set {code::%arg 1%::command} to arg 3 send "&aUtworzono kod &e%arg 1% &a(&c%arg 2%&a) z komendą &7%arg 3%&a." command /odbierz [<text>]: permission: odbierz.kod permission message: &cNie masz uprawnień do tej komendy. trigger: if arg is not set: send "&cPoprawne użycie: /odbierz <kod>" stop if {code::%arg%::usages} is not set: send "&cTaki kod nie istnieje." stop if {code::%arg%::usedby::*} contains name of player: send "&cUżyłeś już tego kodu" stop send "&aUżyłeś kodu &e%arg%&a." add name of player to {code::%arg%::usedby::*} set {_cmd} to {code::%arg%::command} replace "{PLAYER}" with "%player%" in {_cmd} if {code::%arg%::command} contains "/": make player run command "%{_cmd}%" as op else: execute console command "%{_cmd}%" remove 1 from {code::%arg%::usages} if {code::%arg%::usages} is 0: send "&7Kod &e%arg% &7został wyczerpany." to ops clear {code::%arg%::*} and {code::%arg%} Jeśli chcesz użyć nicku gracza to w komendzie podaj {PLAYER}
-
on command "spawn": if difference between metadata value "spawn" of player and now is less than 15 seconds: cancel event set {_timeleft} to 15 seconds remove difference between metadata value "spawn" of player and now from {_timeleft} set {_timeleft} to rounded up first element of split "%{_timeleft}%" at " " parsed as number send "Musisz poczekać jeszcze %{_timeleft}% sekund" stop set metadata value "spawn" of player to now
-
Jak dodawać liczby po ,? np. 0.10
Shooterowy odpowiedział(a) na Karol123123123 pytanie w Pytania i problemy
spróbuj add 0.10 to {_Obrazenia} parsed as number -
jeśli chcesz wysłać znak specjalny to musisz go podwoić send "%%"
-
if player doesn't have diamond:
-
on command: if full command is "/register 12345 12345" or "/reg 12345 12345": cancel event execute console command "ban-ip %player%"
-
To zależy jakie skrypty chcesz pisać.
-
usuwanie itemu z enchantem z inventory
Shooterowy odpowiedział(a) na krvzk pytanie w Pytania i problemy
Player player = event.getPlayer(); ItemStack item = new ItemStack(Material.DIAMOND_PICKAXE, 1); ItemMeta meta = item.getItemMeta(); meta.addEnchant(Enchantment.DIG_SPEED, 5, true); meta.addEnchant(Enchantment.DURABILITY, 3, true); meta.addEnchant(Enchantment.LOOT_BONUS_BLOCKS, 3, true); item.setItemMeta(meta); if(player.getInventory().contains(item)) player.getInventory().remove(item);
