Witam,
tworzę skrypt z "custom" mobami, i mam problem z ich ekwipunkiem.
Wiem, że mogę użyć teoretycznie np.:
(...)
equip last spawned with all leather armor
(...)
tylko co najlepsze zdarza mu się nie odpowiedzieć.
To jest wygodne rozwiązanie, racja, tylko że chciałbym każdy slot skonfigurować osobno, razem z enchantem, jak i dodać broń dla tego moba.
Z racji komendy spawnującej używam last spawned entity.
A kod aktualny prezentuje się tak: (testowy, na nie musi mieć permisji i opisu)
Spoiler
CustomMob.sk
command /TestSpawn<text>:
trigger:
spawn zombie above the targeted block
set last spawned entity's display name to "szarlotka"if arg 1 is "L":
equip last spawned entity with all leather armor
give 1 wooden sword to last spawned entity
message "Leather"if arg 1 is "I":
equip last spawned entity with all iron armor
give 1 iron sword to last spawned entity
message "Iron"if arg 1 is "G":
equip last spawned entity with all gold armor
give 1 gold sword to last spawned entity
message "Gold"if arg 1 is "D":
equip last spawned entity with all Diamond armor
give 1Diamond sword to last spawned entity
message "Diamond"
I ustawianie wybranych slotów zbroi: (działa tylko napierśnik)
set chestplate slot of the last spawned entity to a iron chestplate
set helmet slot of the last spawned entity to iron helmet
set boot slot of the last spawned entity to iron boot
set legging slot of the last spawned entity to iron leggins
Problem z tym, że nie dość, że nie dostaje żaden broni, to Żelazo, Złoto i Diament w ogóle nie dostają zbroi. (SS: https://imgur.com/a/VU8xtlI )
Jakieś pomysły? Inne nazwy? inny sposób?
I przy okazji, czy mogę w jakiś sposób ustawić obrażenia moba, np na 4 serduszka (8) czy tylko to by było przez (jeżeli w ogóle) broń i enchant broni?
Pytanie
DaWiHsS 5
Witam,
tworzę skrypt z "custom" mobami, i mam problem z ich ekwipunkiem.
Wiem, że mogę użyć teoretycznie np.:
tylko co najlepsze zdarza mu się nie odpowiedzieć.
To jest wygodne rozwiązanie, racja, tylko że chciałbym każdy slot skonfigurować osobno, razem z enchantem, jak i dodać broń dla tego moba.
Z racji komendy spawnującej używam last spawned entity.
A kod aktualny prezentuje się tak: (testowy, na nie musi mieć permisji i opisu)
CustomMob.sk
I ustawianie wybranych slotów zbroi: (działa tylko napierśnik)
set chestplate slot of the last spawned entity to a iron chestplate set helmet slot of the last spawned entity to iron helmet set boot slot of the last spawned entity to iron boot set legging slot of the last spawned entity to iron legginsProblem z tym, że nie dość, że nie dostaje żaden broni, to Żelazo, Złoto i Diament w ogóle nie dostają zbroi. (SS: https://imgur.com/a/VU8xtlI )
Jakieś pomysły? Inne nazwy? inny sposób?
I przy okazji, czy mogę w jakiś sposób ustawić obrażenia moba, np na 4 serduszka (8) czy tylko to by było przez (jeżeli w ogóle) broń i enchant broni?
Pozdrawiam
~DaWiHs
Odnośnik do komentarza
https://skript.pl/temat/30037-problem-z-mob-equip/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi