- Katılım
- 5 Şubat 2018
- Mesajlar
- 1.072
- Elmaslar
- 620
- Puanlar
- 16.230
- Yaş
- 21
- Minecraft
- Fhalinkz
Selam Millet!
Bugün sizlere skript-npc addonunu tanıtacağım. Eğer işinize yaradıysa elmas vermeyi unutmayın.
Ne işe yarar?
Skript için Citizens desteği sağlayan basit fakat güçlü bir addondur. Npc'nizle bu addon sayesinde komutlar kullandırtabilirsiniz. Yürüyüşe çıkartabilirsiniz. Hatta oyunculara bile saldırtabilirsiniz.
Nereden indirebilirim?
Addon - skript-npc
Yapımcı
@NanoDankster
Haydi tanıtımımıza başlayalım.
NPC Yaratmak
Kod:
command npc [<text>] [<text>]:
trigger:
if arg-1 is "yarat":
if arg-2 is set:
create npc named arg-2 with type player at player's location
NPC'nizin ismini değiştirmek
Kod:
command npc [<text>] [<text>]:
trigger:
if arg-1 is "isim-degistir":
if arg-2 is set:
set name of citizen of target entity to arg-2
NPC'nizin skinini değiştirmek
Kod:
command npc [<text>] [<text>]:
trigger:
if arg-1 is "skin":
if arg-2 is set:
set skin of the target npc to arg-2
NPC'nizi silmek
Kod:
command npc [<text>]:
trigger:
if arg-1 is "sil":
destroy citizen of target entity
NPC'nizi hareket ettirmek
Kod:
command npc [<text>] [<player>]:
trigger:
if arg-1 is "yürüt":
if arg-2 isn't set:
send "NPC 10 saniye sonra yürümeye baslayacaktır" to player
wait 10 seconds
make the citizen of target entity move to player's location at speed 2
if arg-2 is set:
make the citizen of target entity move to arg-2's location at speed 2
NPC'niz ile menü oluşturmak
Kod:
on right-click:
if target entity is a citizen:
if name of citizen of target entity is "NPC":
open virtual chest with size 2 named "NPC Menu"
make gui slot 0 of player with dirt named "NPC" to nothing
NPC'nizi saldırtmak
Kod:
command npc [<text>] [<player>]:
trigger:
if arg-1 is "saldır":
if arg-2 is set:
make the citizen of target entity attack arg-2
NPC'nizi takip ettirmek
Kod:
command npc [<text>] [<player>]:
trigger:
if arg-1 is "takip":
if arg-2 is set:
make the citizen of target entity follow arg-2
NPC'nizi durdurmak
Kod:
command npc [<text>]:
trigger:
if arg-1 is "dur":
cancel navigation of the citizen of target entity