-
Ilość zawartości
261 -
Rejestracja
-
Ostatnia wizyta
-
Wygrane w rankingu
3
Treść opublikowana przez devyy
-
Masz tutaj poprawiony kod: variables: {chat} = true command /chatoff: trigger: if {chat} is true: set {chat} to false broadcast "&6Czat został wyłączony przez administratora &e%player%&6&l." else: send "&cCzat jest już wyłączony!" command /chaton: trigger: if {chat} is false: set {chat} to true broadcast "&6Czat został włączony przez administratora &e%player%&6&l." else: send "&cCzat jest już włączony!" on chat: if {chat} is false: cancel event send "&cCzat jest obecnie wyłącz I tak zmienna bedzie globalna czyli dla każdego taka sama
-
command /gui: trigger: set {_gui} to chest inventory with 6 rows named "Właściciele" set {_slot} to 20 loop all players: if loop-player has permission "wlasciciel.gui": set slot {_slot} of {_gui} to skull of "%loop-player%" parsed as offline player named "&6%loop-player's name%" add 1 to {_slot} set {_slot} to 37 loop all players: if loop-player has permission "wlasciciel.gui": if loop-player is online: set slot {_slot} of {_gui} to skull of "%loop-player%" parsed as offline player named "&a%loop-player's name%" add 1 to {_slot} open {_gui} to player on inventory click: if inventory name of event-inventory is "Właściciele": event-inventory is not player's inventory cancel event Potrzeba SkBee nie testowałem
-
Skrypt na szanse wykonania komendy po zabiciu gracza
devyy odpowiedział(a) na _Nekc pytanie w Pytania i problemy
zmień na execute attacker command "komenda" -
on right click: if player is sneaking: loop entities within 5 blocks of player: if loop-entity is not a player: if player can see loop-entity: set {_vector} to vector from player to loop-entity set {_vector} to length of {_vector} * 2 set y-pos of {_vector} to 1 set loop-entity's velocity to {_vector} nie testowałem ale chyba zadziała
-
W skript nie ma funkcji sprawdzajacej czy przycisk jest trzymany jest tylko sprawdzanie czy jest kliknięty nie trzymany więc jest to raczej nie możliwe ew. plugin w Javie
-
command /dajrange [<player>] [<text>]: usage: &7>> &cUżycie: /dajrange [gracz] [ranga] trigger: execute console command "lp user %arg-1% parent set %arg-2%" send "&7>> &aGraczowi %arg-1% nadano rangę %arg-2%." Nie wiem po co to ci ale jak ci sie nie chce jednej komendy wpisac to masz
-
command /polec [<text>] [<text>]: usage: &7>> &cPodaj kod który chcesz ustawić na kod polecenia! trigger: if arg 1 is "ustawkod": set {polecCode::%arg 2%} to arg 2 send "&7>> &aPomyślnie ustawiłeś kod polecenia na &e%arg 2%&a!" command /polecony [<text>]: usage: &7>> &cPodaj kod który chcesz sprawdzić! trigger: if {polecCode::%arg 1%} is set: send "&7>> &aZnaleziono! Pomyslnie wyslales nagrode nagorde za polecenie!" set {poleconyCode::*} to arg 1 else: send "&7>> &cNiestety! Nie znaleźliśmy pasującego kodu do &e%arg 1%&c!" on join: if {poleconyCode::*} is set: give player 1 of diamond send "&7>> &aNiespodzianka! Jakis gracz wpisal twoj kod polecenia!" prosze powinno działać
-
on break of beacon: if {beacon::health} is not set: set {beacon::health} to 300 remove 1 from {beacon::health} if {beacon::health} is less than or equal to 0: send "&aGratulacje! Zniszczyłeś beacon i otrzymujesz gwarantowaną nagrodę!" to player give 1 diamond to player delete {beacon::health} delete block at event-block else if {beacon::health} is between 2 and 300: send "&cBeacon ma teraz %{beacon::health}% HP" to player set {_random} to random integer between 1 and 100 if {_random} <= 10: send "&aOtrzymujesz nagrodę za zniszczenie beacon!" to player give 1 gold ingot to player delete {beacon::health} delete block at event-block push all players in radius 4 of event-block upwards with force 2 powinno działać
-
W ostatniej linijce zapomniałeś }
-
Masz rację lepiej wydłużyć kod do 200 linijek Prosze nie rób tego i zrób to pod jedną komendą To tak zaczynając w on quit masz wait {@ban.quit} days to ma być żart? Lepiej zrobić difference i z on joinem niż waitować pare dni (gdy serwer się wyłączy timer sie usuwa) Tak samo masz w innych eventach banowania np /cheater i jest tego więcej Poza tym można dodać zamiast {sprawdzany::*} jakiś prefix typu {CP::checkingNow::*} Można dopatrywać się dalej ale jak poprawisz to w jedną komende bedzie łatwiej Więc tak ocenka 4/10 nie spodziewałem się że coś takiego możesz napisać
-
on place: set {_location} to location of event-block loop 30 times: send action bar "&cReset za %{_time}% sekund" to player wait 1 second delete block at {_location} prosze
-
on place of ancient debris: player's tool is ancient debris of unbreaking 10 named "&4&lSummon Boss1" summon 1 stray at location of block set {a::%player%} to last spawned stray set name of {a::%player%} to "&4&lBoss1" set {player::%player%} to player set the target of {a::%player%} to {player::%player%} on death of player: if player is {player::%player%}: kill {a::%player%} delete {a::%player%} on player move: if distance between player and {a::%player%} > 100: kill {a::%player%} delete {a::%player%} on death: if victim is stray: if colored name of victim is "&4&lHantu": send "&cWypedziles Boss1" to attacker else if colored name of victim is "&4&lBoss1": clear drops chance of 100%: set drops to 3 iron nugget Poprawić prosze w razie błędów i napisać Jak coś serwer/skrypt aby bossy sie zapisywały musi być odpalony 24/7
-
Przy dodawaniu numeru używa Anvil GUI po prostu, aby było ładniej i ciekawiej
-
on projectile hit: if event-projectile is snowball: launch ball large coloured red, purple and white fading to light green and black at event-location with duration 1 on rightclick with snowball: if {cd::%player%} is set: if difference between {cd::%player%} and now is smaller than 3 seconds: send "&bNastępny raz mozesz użyć &3Super sniezki &bza 3s" to player stop set {cd::%player%} to now add 1 snowball to player's tool while block at projectile is air: play heart at projectile wait 1 tick stop set {cd::%player%} to now add 1 snowball to player's tool while block at projectile is air: play heart at projectile wait 1 tick Powinno działać błędów raczej nie ma
-
To czego sie dziwisz 2.1.2? Wersja serwera też zmień na najnowszą lub chociaż 1.17+ A co do 1.17+ skripta to pobierz tego: klik A jak musisz mieć 1.8.8 (choć nie powinnieneś) to tego: klik
-
on rightclick with end stone: if name of event-item is "&8» &9STONIARKA &8«": if lore of event-item is "&7Typ: &91x WOLNA%nl%&c%nl%&9Postaw na ziemi &8(Możesz zniczyć złotym kilofem by odzyskać)": set block to air set event-block to stone add location of event-block to {slow.stoniarki::*} Może teraz rozumiesz?
-
on break: add 1 to {blocksBroken::%player%} {blocksBroken::%player%} is 9: execute console command "/bc" set {blocksBroken::%player%} to 0 o to chodziło?
-
Jest MineResetLite na 1.19 rework klik lub jak juz musisz inny to RealMines klik
-
function Crafting_template(p: player): open chest with 6 rows named "&6Crafting Menu" to {_p} set slot 0 of {_p}'s current inventory to white stained glass pane named " " set slot 1 of {_p}'s current inventory to white stained glass pane named " " set slot 2 of {_p}'s current inventory to white stained glass pane named " " set slot 3 of {_p}'s current inventory to white stained glass pane named " " set slot 4 of {_p}'s current inventory to white stained glass pane named " " set slot 5 of {_p}'s current inventory to white stained glass pane named " " set slot 6 of {_p}'s current inventory to orange stained glass pane named " " set slot 7 of {_p}'s current inventory to orange stained glass pane named " " set slot 8 of {_p}'s current inventory to orange stained glass pane named " " command /crafting: trigger: Crafting_template(player) chyba zadziała
-
command /gapple: trigger: give player 1 of golden apple named "&a&lkoksik" on consume: event-item is golden apple named "&a&lkoksik" cancel event remove all potions from player apply regeneration 2 to player for 10 seconds apply absorption to player for 10 seconds apply fire resistance to player for 60 seconds prosze
-
on break: set {_fortune} to level of fortune of player's tool add 1 to {_fortune} add {_fortune} of event-block to player's inventory To jak chcesz na wszystkie bloki
-
np tak i sobie database w script load popraw na swoje polaczenie mysql jak sie pomylę proszę niech mnie ktoś poprawi: options: u2: "&aPoprawne użycie: /portfel (add) (set) (remove) (take) (info) [nick]" # do uzycia gdy gracz nie poda arg on script load: set {sql} to the database "mysql://localhost:3306/mydatabase?user=admin&password=12345&useSSL=false" command /portfel [<text>] [<player>] [<number>]: permission: op permission message: &cGdzie z łapami trigger: if arg 1 or arg 2 or arg 3 is not set: send "&aPoprawne użycie: /portfel (add) (set) (remove) (take) (info) [nick]" if arg 1 is "add": execute "UPDATE players SET money = money + %arg 3% WHERE uuid = '%uuid of arg 2%'" in {sql} send "&aWysłałeś graczowi %arg-2% %arg-3% zł" send "&aOtrzymałeś %arg-3%" to arg 2 if arg 1 is "set": execute "UPDATE players SET money = %arg 3% WHERE uuid = '%uuid of arg 2%'" in {sql} send "&aPortfel gracza %arg-2% wynosi teraz %arg-3% zł" send "&aTwoj twoim portfelu masz teraz %arg-3%" to arg 2 if arg 1 is "remove": execute "SELECT money FROM players WHERE uuid = '%uuid of arg 2%'" in {sql} and store the result in {money::*} if {money::1} >= arg 3: execute "UPDATE players SET money = money - %arg 3% WHERE uuid = '%uuid of arg 2%'" in {sql} send "&aZabrano %arg-3% graczowi %arg-2%" send "&aZabrano ci %arg-3% zł!" to arg 2 else: send "&cGracz nie ma tyle zł" if arg 1 is "take": execute "SELECT money FROM players WHERE uuid = '%uuid of arg 2%'" in {sql} and store the result in {money::*} if {money::1} >= arg 3: execute "UPDATE players SET money = money - %arg 3% WHERE uuid = '%uuid of arg 2%'" in {sql} execute "UPDATE players SET money = money + %arg 3% WHERE uuid = '%uuid of player%'" in {sql} send "&aZabrano ci %arg-3% zł!" to arg 2 send "&aZabrałeś graczowi %arg-2% %arg-3% zł!" command /kasa [<player>]: trigger: if arg 1 is not set: execute "SELECT money FROM players WHERE uuid = '%uuid of player%'" in {sql} and store the result in {money::*} send "&aW swoim portfelu masz &e%{money::1}%&azł" else: execute "SELECT money FROM players WHERE uuid = '%uuid of arg 1%'" in {sql} and store the result in {money::*} send "&aGracz %arg-1% posiada w swoim portfelu &e%{money::1}%&azł" on join: while player is online: set title of player's scoreboard to "Nazwa serwera" set line 1 of player's scoreboard to "&eTwój nick: %player's name%" execute "SELECT money FROM players WHERE uuid = '%uuid of player%'" in {sql} and store the result in {money::*} set line 2 of player's scoreboard to "&ePortfel: %{money::1}%" wait 1 second
-
import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.plugin.java.JavaPlugin; public class SellPlugin extends JavaPlugin { @Override public void onEnable() { Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() { @Override public void run() { for (Player player : Bukkit.getOnlinePlayers()) { player.performCommand("sell"); } } }, 0L, 1200L); } } prosze
-
Nie wiem czy zadziała ale spróbował bym coś takiego: on join: {czas::%player%} is not set: set {czas::%player%} to 0 while player is online: set title of player's scoreboard to "My Server" set line 1 of player's scoreboard to "&eMonety: &7%{czas::%player%}%" wait 1 seconds every 30 minutes: loop all players: add loop-player to {loops::%loop-player%} loop all players: add loop-player to {loops::%loop-player%} if loop-player is offline add 1 to {czas::%{loops::%loop-player%}%} give loop-player 1 of diamond named "&6Moneta Czasu" send "&aOtrzymałeś jedną monetę czasu za spędzenie 30 minut na serwerze!" to loop-player Wykorzystałem scoreboard fendiego
-
Mam się domyślio.ć co nei działa? A po 2 spróbój tego bo da sie w jednej komendzie to zrobić (prawdobodobnie fajnie się używa ChatGPT co?) on script load: loop all players where [{coins::%input%} is not set]: set {coins::%loop-player%} to 0 command /monety [<text>] [<text>] [<number>]: trigger: if arg 1 is not set: send "Dostępne polecenia: /monety dodaj <gracz> <ilość>, /monety odejmij <gracz> <ilość>, /monety stan <gracz>" if arg 1 is "dodaj": add arg 3 to {coins::%arg 2%} send "Dodano %arg 3% monet dla gracza %arg 2%." if arg 1 is "odejmij": if arg 3 is less than {coins::%arg 2%}: remove arg 3 from {coins::%arg 2%} stop set {coins::%arg 2%} to 0 send "Odejmowano %arg 3% monet od gracza %arg 2%." if arg 1 is "stan": if arg 2 is set: if arg 3 is not set: send "Gracz %arg 2% ma %{coins::%arg 2%}% monet."
