Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem] Skrypt moby


Rekomendowane odpowiedzi

Opublikowano

Siemka

 

Mam problem z skryptem na silniejsze moby, chodzi głównie o to że jeżeli napiszę iż skrypt ma spawnować silniejsze moby robi on to bez końca, czyli zwykle podczas nocy mamy 400/800 mobów na mapie podczas /killall all

Z skryptem mam ich od 50 000 do 300 000 w jedną noc...

 

Co powoduje ogromne lagi i spadki fps do 1/3

on spawn:
        entity is in world "{@swiat}":
                if {moby.status} is true:
                        entity is zombie:
                                set name of entity to "&aZombie"
                                set max health of spawned entity to 20
                                chance of 30%:
                                        set chestplate of entity to chestplate of protection 1
                                chance of 45%:
                                        set name of entity to "&eZOMBIE - 2P"
                                        set max health of spawned entity to 25
                                        heal the spawned entity
                                        chance of 60%:
                                                set chestplate of entity to chestplate of thorns 1
                                        chance of 20%:
                                                set helmet of entity to helmet of protection 1
                                        chance of 20%:
                                                set boots of entity to boots of protection 1
                                        chance of 30%:
                                                set leggings of entity to leggings of protection 1
                                        chance of 40%:
                                                set the entity's tool to sword of sharpness 2
                                chance of 20%:
                                        set name of entity to "&6Czerwony Zombie"
                                        set max health of spawned entity to 30
                                        heal the spawned entity
                                        set chestplate of entity to chestplate of thorns 2
                                        chance of 20%:
                                                set helmet of entity to helmet of protection 2
                                        chance of 20%:
                                                set boots of entity to boots of protection 1
                                        chance of 30%:
                                                set leggings of entity to leggings of protection 2
                                        chance of 40%:
                                                set tool of entity to sword of sharpness 3
                                chance of 5%:
                                        set name of entity to "&cSilny Zombie"
                                        set max health of spawned entity to 40
                                        heal the spawned entity
                                        set chestplate of entity to chestplate of thorns 2 and protection 2
                                        chance of 20%:
                                                set helmet of entity to helmet of protection 3
                                        chance of 20%:
                                                set boots of entity to boots of protection 2
                                        chance of 30%:
                                                set leggings of entity to leggings of protection 4
                                        chance of 40%:
                                                set the entity's tool to sword of sharpness 4 and fire aspect 1  

to jest przykładowy skrypt na Zombiaka tylko, nie wiem jak zrobić aby zamieniało naturalnie zrespionego Zombie w jednego z tych tutaj, albo przynajmniej ograniczyć ich liczbę do naturalnej (300/500) na mapie

 

 

Jakieś pomysły co do tego

 

 

Skrypt pochodzi od Sophera i nawet ten nie działa, robi taki spawn mobów że serwer zawiesza

TEMAT


 


Opublikowano

NIE polecam robic tego w skrypcie tez to testowalem i mega spawn jest mobow, a wiec musisz spytac sie doswiadczonych technikow o takowy plugin.

Drogi Użytkowniku <użytkownik> !
Jeśli, twój problem przez zemnie do końca rozwiązany.
Powiadom mnie o tym, pisząc dalszy problem i '@Aerons'
A, jeżeli wszystko w porządku kliknij Lubię to!

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...