Bulundu Belirli Bir İsmi Olan Köylüye Tıklayınca Komut Yazdırma

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

UmutcanTR123

Zombi Geldi, Beni Yedi
Katılım
12 Kasım 2016
Mesajlar
236
Elmaslar
14
Puan
13.420
Arkadaşlar Ben Başlıktada Belirttiğim Gibi Öyle Bir Skript İstiyorum
Bi Köylü Veya Belirli Her Hangi Bir Moba Bir Oyuncu Tıkladığında Belirli Bir Komut Yazdırsın. (Skyblock Ada Oluşturma Vb. Şeyler İçin Kullanıcağım.)
 
Şey uğraştığım bir skript bence işine yarar

Kod:
command /koylu [<text>]:
    permission: op
    permission message: &cBunu yapmak için yetkin yok.
    trigger:
        spawn 1 villager at location of player
        set name of spawned villager to "İsmi"
        apply slowness 255 to last spawned entity for 99999 days
        set {koyludogumyeri} to location of player
        send "&aKöylü başarıyla canlandırıldı!"



on damage:
    name of victim contains "İsmi"
    cancel event

      [istersen her 0 tickde bir yapıp hiç haraket etmemsini sağlaya bilirsin örn: every 0 tick:]
every 5 second:
         loop all entities:
                    if loop-entity is villager:
                        if villager's name is "İsmi":
                            teleport all entities to {koyludogumyeri}

                 [villager yerine farklı bir mob da yapa bilirsin]
on rightclick on villager:
        name of clicked entity contains "mob İsmi"
        close player's inventory #bunu yapmadan önce başka bir chest açıkkan o chest bir şeye tıklayınca buraya ışınlarsa bu olmadan itemler envanterde olur ve onun üstündeki itemler silinir
        open chest with [satır miktarı] rows named "açılan gui nin ismi" to player
        wait 1 tick #1 tick bekle veya wait 1 second da yazıla bilir
        format slot 0 of player with 1 [item idsi] named "İtem ismi" lore "İtem altına yazılan info"to close then run [execute player command "tıklayınca gui nin kapatıp oyuncunun çalıştırdığı komut"]
        format slot 1 of player with 1 [item idsi] named "İtem ismi" lore "İtem altına yazılan info"to run [execute player command "tıklayınca gui nin kapanmayıp oyuncunun çalıştırdığı komut"]
        format slot 2 of player with [item miktarı] [item idsi] named "İtem ismi" lore "İtem altına yazılan info"to run [execute player command "tıklayınca gui nin kapanmayıp oyuncunun çalıştırdığı komut"]
        format slot [slot sayısı] of player with [item miktarı] [item idsi] named "İtem ismi" lore "İtem altına yazılan info"to run [execute player command "tıklayınca gui nin kapanmayıp oyuncunun çalıştırdığı komut"]
        format slot 4 of player with 5 diamond named "&aörnek&c&l123" to close then run [execute player command "örn"]
        format slot 5 of player with 7 stained glass pane:2 named "&aörnek&c&l123" lore "&aörnekkler&c&l123" to close then run [execute player command "op"]
        format slot 6 of player with 2 dye:5 named "&aörnek&c&l123" to close then run [execute player command "login"]
        format slot 7 of player with 9 wool:8 named "&aörnek&c&l123" to close then run [execute player command "kill"]
        format slot 8 of player with 25 iron ingot named "&aörnek&c&l123" to close then run [execute player command "warp spawn"]

örnek vercek olursak

Kod:
options:
    prefix: &2&lBOSS &6&l>
             
command /bossnpc [<text>]:
    permission: op
    permission message: &cBunu yapmak için yetkin yok.
    trigger:
        if arg 1 is "1":
            spawn 1 zombie at location of player
            set name of spawned zombie to "&a&lBOSS"
            apply slowness 255 to last spawned entity for 99999 days
            set {koyludogumyeri} to location of player
            send "&aBOSS başarıyla canlandırıldı!"

on damage:
    name of victim contains "&a&lBOSS"
    cancel event

every 0 tick:
     trigger:
         loop all entities:
                    if loop-entity is zombie:
                        if zombie's name is "&a&lBOSS":
                            teleport all entities to {koyludogumyeri}
     
on rightclick on zombie:
        name of clicked entity contains "&a&lBOSS"
        close player's inventory
        open chest with 3 rows named "&cBoss Listesi" to player
        wait 1 tick
        format slot 0 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 1 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 2 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 3 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 4 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 5 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 6 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 7 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 8 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 9 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 10 of player with skull of ("skeleton" parsed as an offline player) named "&7&lSkeleton BOSS" with lore " " to close then run [execute player command "warp boss1"]
        format slot 12 of player with skull of ("zombie" parsed as an offline player) named "&2&lZombie BOSS" with lore " " to close then run [execute player command "warp boss2"]
        format slot 14 of player with skull of ("wither" parsed as an offline player) named "&8&lWither Skeleton BOSS" with lore " " to close then run [execute player command "warp boss3"]
        format slot 16 of player with skull of ("herobrine" parsed as an offline player) named "&c&lHerobrine BOSS" with lore " " to close then run [execute player command "warp boss4"]
        format slot 17 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 18 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 19 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 20 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 21 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 22 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 23 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 24 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 25 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 26 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]

skript de hata var sonra fark ettim hatasını düzeltcem sonra
 
Son düzenleme:
Şey uğraştığım bir skript bence işine yarar

Kod:
command /koylu [<text>]:
    permission: op
    permission message: &cBunu yapmak için yetkin yok.
    trigger:
        spawn 1 villager at location of player
        set name of spawned villager to "İsmi"
        apply slowness 255 to last spawned entity for 99999 days
        set {koyludogumyeri} to location of player
        send "&aKöylü başarıyla canlandırıldı!"



on damage:
    name of victim contains "İsmi"
    cancel event

      [istersen her 0 tickde bir yapıp hiç haraket etmemsini sağlaya bilirsin örn: every 0 tick:]
every 5 second:
         loop all entities:
                    if loop-entity is villager:
                        if villager's name is "İsmi":
                            teleport all entities to {koyludogumyeri}

                 [villager yerine farklı bir mob da yapa bilirsin]
on rightclick on villager:
        name of clicked entity contains "mob İsmi"
        close player's inventory #bunu yapmadan önce başka bir chest açıkkan o chest bir şeye tıklayınca buraya ışınlarsa bu olmadan itemler envanterde olur ve onun üstündeki itemler silinir
        open chest with [satır miktarı] rows named "açılan gui nin ismi" to player
        wait 1 tick #1 tick bekle veya wait 1 second da yazıla bilir
        format slot 0 of player with 1 [item idsi] named "İtem ismi" lore "İtem altına yazılan info"to close then run [execute player command "tıklayınca gui nin kapatıp oyuncunun çalıştırdığı komut"]
        format slot 1 of player with 1 [item idsi] named "İtem ismi" lore "İtem altına yazılan info"to run [execute player command "tıklayınca gui nin kapanmayıp oyuncunun çalıştırdığı komut"]
        format slot 2 of player with [item miktarı] [item idsi] named "İtem ismi" lore "İtem altına yazılan info"to run [execute player command "tıklayınca gui nin kapanmayıp oyuncunun çalıştırdığı komut"]
        format slot [slot sayısı] of player with [item miktarı] [item idsi] named "İtem ismi" lore "İtem altına yazılan info"to run [execute player command "tıklayınca gui nin kapanmayıp oyuncunun çalıştırdığı komut"]
        format slot 4 of player with 5 diamond named "&aörnek&c&l123" to close then run [execute player command "örn"]
        format slot 5 of player with 7 stained glass pane:2 named "&aörnek&c&l123" lore "&aörnekkler&c&l123" to close then run [execute player command "op"]
        format slot 6 of player with 2 dye:5 named "&aörnek&c&l123" to close then run [execute player command "login"]
        format slot 7 of player with 9 wool:8 named "&aörnek&c&l123" to close then run [execute player command "kill"]
        format slot 8 of player with 25 iron ingot named "&aörnek&c&l123" to close then run [execute player command "warp spawn"]

örnek vercek olursak

Kod:
options:
    prefix: &2&lBOSS &6&l>
            
command /bossnpc [<text>]:
    permission: op
    permission message: &cBunu yapmak için yetkin yok.
    trigger:
        if arg 1 is "1":
            spawn 1 zombie at location of player
            set name of spawned zombie to "&a&lBOSS"
            apply slowness 255 to last spawned entity for 99999 days
            set {koyludogumyeri} to location of player
            send "&aBOSS başarıyla canlandırıldı!"

on damage:
    name of victim contains "&a&lBOSS"
    cancel event

every 0 tick:
     trigger:
         loop all entities:
                    if loop-entity is zombie:
                        if zombie's name is "&a&lBOSS":
                            teleport all entities to {koyludogumyeri}
    
on rightclick on zombie:
        name of clicked entity contains "&a&lBOSS"
        close player's inventory
        open chest with 3 rows named "&cBoss Listesi" to player
        wait 1 tick
        format slot 0 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 1 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 2 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 3 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 4 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 5 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 6 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 7 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 8 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 9 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 10 of player with skull of ("skeleton" parsed as an offline player) named "&7&lSkeleton BOSS" with lore " " to close then run [execute player command "warp boss1"]
        format slot 12 of player with skull of ("zombie" parsed as an offline player) named "&2&lZombie BOSS" with lore " " to close then run [execute player command "warp boss2"]
        format slot 14 of player with skull of ("wither" parsed as an offline player) named "&8&lWither Skeleton BOSS" with lore " " to close then run [execute player command "warp boss3"]
        format slot 16 of player with skull of ("herobrine" parsed as an offline player) named "&c&lHerobrine BOSS" with lore " " to close then run [execute player command "warp boss4"]
        format slot 17 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 18 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 19 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 20 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 21 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 22 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 23 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 24 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 25 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]
        format slot 26 of player with 1 stained glass pane:2 named "&e&lPikachu&d&lCraft" to close then run [execute player command ""]

skript de hata var sonra fark ettim hatasını düzeltcem sonra
Emek Verip Yazdığın İçin Teşekkür Ederim. Sunucumu Açınca Test Ediceğim. Gui İçin Gerekli Pluginler Nelerdi? (Aslında ChestCommands İle Yapcaktım. Ama Yapmıssın Kullanıyım :D)
 
Emek Verip Yazdığın İçin Teşekkür Ederim. Sunucumu Açınca Test Ediceğim. Gui İçin Gerekli Pluginler Nelerdi? (Aslında ChestCommands İle Yapcaktım. Ama Yapmıssın Kullanıyım :D)
TuSKe Gerektirir
 
Arkadaşlar Ben Başlıktada Belirttiğim Gibi Öyle Bir Skript İstiyorum
Bi Köylü Veya Belirli Her Hangi Bir Moba Bir Oyuncu Tıkladığında Belirli Bir Komut Yazdırsın. (Skyblock Ada Oluşturma Vb. Şeyler İçin Kullanıcağım.)
Hocam plugini varken skript kullanma bence npc ye komut ekleyerek yapabilirsin
 
Benim serverde çoğu plugin çalışmıyor hata var hatta kullandığım ama çalışmadığını fark ettiğim pluginler varmış

npc plugini falan bende çalışmıyor çalışmayanlar kullanır
 
Emek Verip Yazdığın İçin Teşekkür Ederim. Sunucumu Açınca Test Ediceğim. Gui İçin Gerekli Pluginler Nelerdi? (Aslında ChestCommands İle Yapcaktım. Ama Yapmıssın Kullanıyım :D)


Bu kadar emek verdiğimi düşünüyosan bi elmas veya beğeni atarsın :D
 
Kod:
command koylu <text>:
    permission: admin.koylu
    permission message: &cYetkin yok!
    trigger:
        if arg 1 is set:
            set {_isim} to arg 1
            spawn a villager at location of player
            set name of spawned villager to "%{_isim}%"
            apply slowness 999 to last spawned villager for 99999 days

on rightclick on villager:
    if villager's name is "%{_isim}%":
        execute player command "is c"
on damage:
    if victim is a villager:
        if victim's name is "%{_isim}%":
            cancel event
on any move:
    if event-entity is villager:
        if villager's name is "%{_isim}%":
            cancel event
 
bu daha iyiymiş :D
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl
Üst