-
Ilość zawartości
999 -
Rejestracja
-
Ostatnia wizyta
-
Wygrane w rankingu
23
Treść opublikowana przez Shooterowy
-
blokowanie wkładanie itemu w dany slot
Shooterowy odpowiedział(a) na hyhy123455 pytanie w Pytania i problemy
on inventory click: if type of clicked inventory is player inventory: if index of clicked slot is 8: if clicked slot is air: cancel event else: if cursor slot of player is not air: cancel event else: if slot 7 of clicked inventory is not air: if "%click type%" contains "shift": wait a tick set {_item} to slot 8 of clicked inventory set name of slot 8 of clicked inventory to " " add {_item} to clicked inventory set slot 8 of clicked inventory to air -
on NPCRightClickEvent: cancel event set {_npc} to event.getNPC() {_npc}.getFullName() is "{@NPCBlacksmithName}" set {_p} to event.getClicker() type of {_p}'s tool is {@brushItem} name of {_p}'s tool is "{@brushName}" set {_gui} to chest inventory with 1 row named "{@GUIName}" set slot 4 of {_gui} to anvil named "&aUlepsz" with lore "&7Szanse:", "&7- &a50%% szans na sukces" and "&7- &c50%% szans na niepowodzenie" set slot 8 of {_gui} to barrier named "&cAnuluj" open {_gui} to {_p}
-
set {_slot} to 4 loop 23 times: if slot {_slot} of player's current inventory is not air: add slot {_slot} of player's current inventory to {klatka::%{_id}%::itemy::*} add 1 to {_slot} send "&8» &aZapisano itemy dla klatki: %{_id}%"
-
[Problem] Wykopanie spawnera zombie daje pusty spawner.
Shooterowy odpowiedział(a) na shaqupl1 pytanie w Pytania i problemy
set {_type} to "%target block's entity type%" -
Jeśli chodzi o komendę /blocks (/condense) z Essentials to: essentials.condense
-
Napisałem coś innego, może Ci się spodoba. command /kula: permission: admin.kula trigger: add 64 fire charge named "&a&lKULA ULEPSZENIA" with lore "&eKliknij nią na przedmiot w ekwipunku, aby go ulepszyć!" and "&f(nie działa na najlepsze enchanty)" to player on rightclick: if name of player's tool is "&a&lKULA ULEPSZENIA": cancel event on inventory click: type of cursor slot of player is fire charge name of cursor slot of player is "&a&lKULA ULEPSZENIA" if clicked slot is any sword or any armor: cancel event if clicked slot is any sword: if clicked slot is enchanted with sharpness: set {_lvl} to level of sharpness of clicked slot if {_lvl} is less than 5: add 1 to {_lvl} enchant clicked slot with "sharpness %{_lvl}%" parsed as enchantment type remove 1 of cursor slot of player from cursor slot of player send "&aUlepszyłeś %type of clicked slot% na ostrość %{_lvl}%" play sound "BLOCK_ANVIL_USE" to player else: send "&cPrzedmiot posiada maksymalny poziom zakęcia ostrość." play sound "ITEM_SHIELD_BLOCK" to player else: send "&cPrzedmiot nie posiada zaklęcia ostrość!" play sound "ENTITY_VILLAGER_NO" to player else: if clicked slot is any armor: if clicked slot is enchanted with protection: set {_lvl} to level of protection of clicked slot if {_lvl} is less than 4: add 1 to {_lvl} enchant clicked slot with "protection %{_lvl}%" parsed as enchantment type remove 1 of cursor slot of player from cursor slot of player send "&aUlepszyłeś %type of clicked slot% na ochrona %{_lvl}%" play sound "BLOCK_ANVIL_USE" to player else: send "&cPrzedmiot posiada maksymalny poziom zakęcia ochrona." play sound "ITEM_SHIELD_BLOCK" to player else: send "&cPrzedmiot nie posiada zaklęcia ochrona!" play sound "ENTITY_VILLAGER_NO" to player
-
Jedyna opcja to wysłanie klikalnego linku na czacie. Nie da się automatycznie otworzyć strony internetowej. Żeby linki działały musisz w pliku konfiguracyjnym pluginu Skript (config.sk) zmienić opcję "parse links in chat messages" na "strict" command /pomoc: trigger: set {_gui} to chest inventory with 1 row named "&aPomoc" set slot 4 of {_gui} to book named "&eWięcej informacji" with lore "&cKliknij, aby wyświetlić adres strony internetowej serwera" open {_gui} to player on inventory click: if name of event-inventory is "&aPomoc": if index of clicked slot is 4: close player's inventory send "&eWięcej pomocy znajdziesz na: &bhttps://www.twojastrona.pl/"
-
command /przelej [<text>] [<text>]: permission: waluta.przelej permission message: &cBrak uprawnień. trigger: if arg 1 is not set: send "&c/przelej <gracz> <kwota>" stop if {waluta::%arg 1%} is not set: send "&cNie ma takiego gracza." stop if arg 1 is name of player: send "&cNie możesz przelać sobie pieniędzy." stop if arg 2 is not set: send "&c/przelej <gracz> <kwota>" stop if arg 2 parsed as number is not set: send "&c/przelej <gracz> <kwota>" stop if arg 2 parsed as number is less than or equal to 0.009: send "&cKwota musi być większa niż $0.009." stop set {_ilosc} to arg 2 parsed as number if {waluta::%player%} is less than {_ilosc}: send "&cNie masz tyle pieniędzy." stop remove {_ilosc} from {waluta::%player%} add {_ilosc} to {waluta::%arg 1%} send "&7Przelałeś &c$%{_ilosc}% &7do &9%arg 1%&7. Stan konta: &c$%{waluta::%player%}%" send "&9%player% przelał Ci &c$%{_ilosc}%&7. Stan konta: &c$%{waluta::%arg 1%}%" to arg 1 parsed as player
-
options: czas: 2 tier: 2 efekt: speed region: spawn on region enter: if "%region%" contains "{@region}": if "%player's potion effects%" contains "speed of tier 2": remove speed from player apply potion of speed of tier {@tier} to player for {@czas} seconds on region leave: if "%region%" contains "{@region}": if "%player's potion effects%" contains "speed of tier 2": remove speed from player
-
On region enter: player doesn't have permission "admin.latanie" If "%region%" contain "spawn": Execute console command "fly %player% on" on region exit: player doesn't have permission "admin.latanie" If "%region%" contain "spawn": Execute console command "fly %player% off"
-
Problem z odczytywaniem informacji z configu
Shooterowy odpowiedział(a) na mroczny_las pytanie w Pytania i problemy
Musisz napisać do autora pluginu z prośbą, aby dodał taką opcję. -
Problem z konfiguracją pluginu na wymianę surowców
Shooterowy odpowiedział(a) na mroczny_las pytanie w Pytania i problemy
-
command /dzialka [<text>] [<text>]: trigger: if arg 1 is "dom": execute player command "ps home" else if arg 1 is "polacz": execute player command "ps merge" else if arg 1 is "sprzedaj": if arg 2 is set: execute player command "ps sell %argument 2%" else: execute player command "ps sell" else if arg 1 is "dodaj": execute player command "ps add" else if arg 1 is "wyrzuc": execute player command "ps remove" else if arg 1 is "wlasciciel": execute player command "ps addowner" else if arg 1 is "usunwlasciciel": execute player command "ps removeowner" else if arg 1 is "wynajem": execute player command "ps rent" else if arg 1 is "kup": execute player command "ps buy" else if arg 1 is "ukryj": execute player command "ps hide" else if arg 1 is "pokaz": execute player command "ps unhide" else if arg 1 is "ustawdom": execute player command "ps sethome" else if arg 1 is "granica": execute player command "ps view" else if arg 1 is "usun": execute player command "ps unclaim" else if arg 1 is "lista": execute player command "ps list" else if arg 1 is "nazwa": if arg 2 is set: execute player command "ps name %argument 2%" else: execute player command "ps name" else: execute player command "ps help"
-
Usuwanie z lore tekstu i zamiana na liczbę
Shooterowy odpowiedział(a) na Piesek pytanie w Pytania i problemy
Zamień set {_liczba} to 1st line of lore of attacker's tool na set {_liczba} to uncoloured 1st line of lore of attacker's tool -
@EventHandler public void DamageEvent(EntityDamageByEntityEvent event) { if(!(event.getEntity() instanceof Player)) return; if (!(event.getDamager() instanceof Arrow)) return; Arrow arrow = (Arrow) event.getDamager(); if(!(arrow.getShooter() instanceof Player)) return; Player victim = (Player) event.getEntity(); Player shooter = (Player) arrow.getShooter(); if(shooter != victim) victim.sendMessage("Gracz " + shooter.getName() + " strzelił do Ciebie z łuku."); else victim.sendMessage("Strzeliłeś do siebie z łuku."); }
-
options: GUICantorRows: 3 #Wielkość GUI (max 6) GUICantorName: &bKantor #Nazwa GUI GUICantorBackground: blue glass pane named " " #Tło GUI GUICantorGoldItem: gold ingot named "&6Złoto" #Wymieniany przedmiot GUICantorGoldToMoneySlot: 11 GUICantorMoneyToGoldSlot: 15 GUICantorExitSlot: 22 command /kantor: trigger: openCantor(player) function openCantor(player: player): set {_gui} to chest inventory with {@GUICantorRows} rows named "{@GUICantorName}" set slot (integers between 0 and ({@GUICantorRows}*9)-1) of {_gui} to {@GUICantorBackground} set slot {@GUICantorGoldToMoneySlot} of {_gui} to gold ingot named "&6Wymień złoto na pieniądze" with lore "&bLPM - Wymień 1 złoto na $1" and "&bPPM - Wymień 64 złota na $64" set slot {@GUICantorMoneyToGoldSlot} of {_gui} to paper named "&aWymień pieniądze na złoto" with lore "&bLPM - Wymień $1 na 1 złoto" and "&bPPM - Wymień $64 na 64 złota" set slot {@GUICantorExitSlot} of {_gui} to barrier named "&cWyjdź" open {_gui} to {_player} on inventory click: if event-inventory is player's inventory: stop if name of event-inventory is not "{@GUICantorName}": stop cancel event if index of clicked slot is {@GUICantorGoldToMoneySlot}: set {_zloto} to number of {@GUICantorGoldItem} in player's inventory if click type is left mouse button: if {_zloto} is 0: send "&cNie masz 1 złota w ekwipunku." stop remove 1 {@GUICantorGoldItem} from player's inventory add 1 to player's money send "&aWymieniłeś 1 złoto na $1." stop if click type is right mouse button: if {_zloto} is less than 64: send "&cNie masz 64 złota w ekwipunku." stop remove 64 {@GUICantorGoldItem} from player's inventory add 64 to player's money send "&aWymieniłeś 64 złota na $64." stop if index of clicked slot is {@GUICantorMoneyToGoldSlot}: if click type is left mouse button: if player's money is less than 1: send "&cNie masz $1." stop if player cannot hold 1 {@GUICantorGoldItem}: send "&cNie masz miejsca w ekwipunku." stop add 1 {@GUICantorGoldItem} to player's inventory remove 1 from player's money send "&aWymieniłeś $1 na 1 złoto." stop if click type is right mouse button: if player's money is less than 64: send "&cNie masz $64." stop if player cannot hold 64 {@GUICantorGoldItem}: send "&cNie masz miejsca w ekwipunku." stop add 64 {@GUICantorGoldItem} to player's inventory remove 64 from player's money send "&aWymieniłeś $64 na 64 złota." stop if index of clicked slot is {@GUICantorExitSlot}: close player's inventory stop
-
on damage: victim is a player attacker is a player attacker is flying make attacker stop flying Nie testowane
-
command /kilof: trigger: if player has permission "admin.kilof": add diamond pickaxe with lore "&aKilof 3x3" to player on mine: player's tool is diamond pickaxe with lore "&aKilof 3x3" player is not sneaking set {_1} to location of event-block set {_2} to location of event-block if player's pitch is between -50 and 50: add 1 to y-coord of {_1} subtract 1 from y-coord of {_2} if player's horizontal facing is west or east: add 1 to z-coord of {_1} subtract 1 from z-coord of {_2} loop blocks within {_1} and {_2}: break loop-value naturally using player's tool else if player's horizontal facing is north or south: add 1 to x-coord of {_1} subtract 1 from x-coord of {_2} loop blocks within {_1} and {_2}: break loop-value naturally using player's tool else: add 1 to x-coord of {_1} add 1 to z-coord of {_1} subtract 1 from x-coord of {_2} subtract 1 from z-coord of {_2} loop blocks within {_1} and {_2}: break loop-block naturally using player's tool
-
options: cooldown_moc: 1001 seconds cooldown_szybkosc: 850 seconds cooldown_uzdrowienie: 25 seconds cooldown_swiatlo: 1001 seconds cooldown_ochrona: 1001 seconds #Komenda Przywolujaca Amulety command /Amulety: trigger: if player have permissions "cus.ka": give player blaze rod named "&eMagiczna Rozdzka Mocy" give player blaze powder named "&1Ognisty Amulet Szybkosci" give player magma cream named "&6Magiczny Amulet Uzdrowienia" give player nether star named "&4Amulet Boskiego Swiatla" give player slimeball named "&2Amulet Boskiej Ochrony" #Amulet Sily command /AmuletSily: trigger: if player have permissions "sk.amuletsily": give player blaze rod named "&eMagiczna Rozdzka Mocy" #Amulet Szybkosci command /AmuletSzybkosci: trigger: if player have permissions "sk.szybkosci": give player blaze powder named "&1Ognisty Amulet Szybkosci" #Amulet Uzdrowienia command /AmuletUzdrowienia: trigger: if player have permissions "sk.uzdrowienia": give player magma cream named "&6Magiczny Amulet Uzdrowienia" #Amulet Widzenia W Ciemnosci command /AmuletSwiatla: trigger: if player have permissions "sk.swiatla": give player nether star named "&4Amulet Boskiego Swiatla" #Amulet Odpornosci na ogien command /AmuletOchrony: trigger: if player have permissions "sk.ochrony": give player slimeball named "&2Amulet Boskiej Ochrony" on rightclick: if type of player's tool is blaze rod: if name of player's tool is "&eMagiczna Rozdzka Mocy": if difference between {Amulety::%player%::moc} and now is less than {@cooldown_moc}: set {_timeleft} to {@cooldown_moc} remove difference between {Amulety::%player%::moc} and now from {_timeleft} send "&eMagiczna Rozdzke Mocy &7możez użyć ponownie za &c%{_timeleft}%" stop remove blaze rod named "&eMagiczna Rozdzka Mocy" from player apply strength 2 to player for 1001 seconds send "&fAMULET: &a&oPoczułeś ogromną siłę..." set {Amulety::%player%::moc} to now else if type of player's tool is blaze powder: if name of player's tool is "&1Ognisty Amulet Szybkosci": if difference between {Amulety::%player%::szybkosc} and now is less than {@cooldown_szybkosc}: set {_timeleft} to {@cooldown_szybkosc} remove difference between {Amulety::%player%::szybkosc} and now from {_timeleft} send "&1Ognisty Amulet Szybkosci &7możez użyć ponownie za &c%{_timeleft}%" stop remove blaze powder named "&1Ognisty Amulet Szybkosci" from player apply speed 2 to player for 850 seconds send "&fAMULET: &a&oTeraz jesteś szybki jak wiatr." set {Amulety::%player%::szybkosc} to now else if player's tool is magma cream: if name of player's tool is "&6Magiczny Amulet Uzdrowienia": if difference between {Amulety::%player%::uzdrowienie} and now is less than {@cooldown_uzdrowienie}: set {_timeleft} to {@cooldown_uzdrowienie} remove difference between {Amulety::%player%::uzdrowienie} and now from {_timeleft} send "&6Magiczny Amulet Uzdrowienia &7możez użyć ponownie za &c%{_timeleft}%" stop remove magma cream named "&6Magiczny Amulet Uzdrowienia" from player apply regeneration 2 to player for 25 seconds send "&fAMULET: &a&oAhhh jak dobrze... zostałeś uleczony." set {Amulety::%player%::uzdrowienie} to now else if player's tool is nether star: if name of player's tool is "&4Amulet Boskiego Swiatla": if difference between {Amulety::%player%::swiatlo} and now is less than {@cooldown_swiatlo}: set {_timeleft} to {@cooldown_swiatlo} remove difference between {Amulety::%player%::swiatlo} and now from {_timeleft} send "&4Amulet Boskiego Swiatla &7możez użyć ponownie za &c%{_timeleft}%" stop remove nether star named "&4Amulet Boskiego Swiatla" from player apply night vision 2 to player for 1001 seconds send "&fAMULET: &a&oZostałeś oświecony boską mocą." set {Amulety::%player%::swiatlo} to now else if player's tool is slimeball: if name of player's tool is "&2Amulet Boskiej Ochrony": if difference between {Amulety::%player%::ochrona} and now is less than {@cooldown_ochrona}: set {_timeleft} to {@cooldown_ochrona} remove difference between {Amulety::%player%::ochrona} and now from {_timeleft} send "&2Amulet Boskiej Ochrony &7możez użyć ponownie za &c%{_timeleft}%" stop remove slimeball named "&2Amulet Boskiej Ochrony" from player apply fire resistance 3 to player for 1001 seconds send "&fAMULET: &a&oPoczułeś gorące płomienie wydobywające się z twojego ciała. Już nie boisz się ognia." set {Amulety::%player%::ochrona} to now #Potrzebne! command /TakieTamTesty: trigger: if player have permissions "sk.takietamtesty": send "&bNo elo !" command /usuncooldowny: trigger: if player have permissions "sk.takietamtesty": clear {Amulety::%player%::*}
-
popraw diffrence na difference
-
options: radius: 4 #Wielkość wybuchu sound_rate: 5 #Częstotliwość odtwarzania dźwięku podczas odbudowy bloków sound: BLOCK_GRAVEL_PLACE #Dźwięk podczas odbudowy bloków (Lista dźwięków: https://helpch.at/docs/1.19.1/org/bukkit/Sound.html) on shoot: if shooter's tool is bow named "&cWybuchowy łuk": set {wybuch::%projectile%} to true on projectile hit: if {wybuch::%projectile%} is set: clear {wybuch::%projectile%} create fake explosion at projectile if "%block at projectile%" contains "water": stop loop blocks in radius {@radius} around projectile: if loop-block is not air: set {_bloki::%location of loop-block%} to location of loop-block set {_bloki::%location of loop-block%::type} to type of loop-block delete loop-block delete projectile wait 3 seconds set {_s} to 0 loop {_bloki::*}: set {_loc} to loop-index set block at loop-value to {_bloki::%loop-value%::type} if {_s} is divisible by {@sound_rate}: play sound "{@sound}" with volume 1 at block at loop-value wait a tick add 1 to {_s}
-
on death of player: loop drops: chance of 50%: add loop-item to {drops::%victim%::*} remove loop-item from drops else: if attacker can hold loop-item: add loop-item to attacker remove loop-item from drops on respawn: {drops::%player%::*} is set give {drops::%player%::*} to player delete {drops::%player%::*}
-
Silnik spigot nie obsługuje modów. Jedyny sensowny silnik jaki udało mi się znaleźć to Magma. Najnowsza wersja tego silnika to 1.18.2. Link do silnika //Edit: Znalazłem jeszcze coś takiego MohistMC
-
A przepraszam, nie zerknąłem na dział. Ty szukasz pluginu a to jest skrypt do pluginu Skript. Jeśli chcesz go użyć to: Otwierasz notatnik, wklejasz podany kod i zapisujesz jako NazwaPliku.sk. (ustawiasz nazwę jaka Ci pasuje. Pamiętaj aby w okienku Zapisz jako typ wybrać Wszystkie pliki (*.*)) Później wrzucasz ten plik do folderu plugins/Skript/scripts. Plugin możesz pobrać stąd: Skript
-
on shoot: if shooter's tool is bow named "&cWybuchowy łuk": set {wybuch::%projectile%} to true on projectile hit: if {wybuch::%projectile%} is set: clear {wybuch::%projectile%} create a safe explosion of force 5 at projectile if "%block at projectile%" contains "water": stop loop blocks in radius 5 around projectile: if loop-block is not air: set {_bloki::%location of loop-block%} to location of loop-block set {_bloki::%location of loop-block%::type} to type of loop-block delete loop-block delete projectile wait 3 seconds loop {_bloki::*}: set {_loc} to loop-index set block at loop-value to {_bloki::%loop-value%::type} wait a tick
