Bulundu Adam ölünce istemlerinin chestte toplanması

  • Konuyu Başlatan Konuyu Başlatan KzgozPvP
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 729
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

KzgozPvP

Koydum Çalışma Masasını
Katılım
13 Eylül 2017
Mesajlar
53
Elmaslar
14
Puan
0
Yaş
23
  • Hologram olsun bu önemli bir etmen
Basit diye düşünüyorum. Yardım edenlere teşekkürler
 
Skript olsa olmaz mı
 
Kod:
options:
    hologram: &2( &6%player% &2)
   
    #Hologram mesajını üstten alabilirsiniz
   
   
    zaman: 10
   
    #Chestin kaybolma süresini burada ayarlayabilirsiniz

on death of player:
    set {_d} to false
    set the block at location of victim to chest
    set {_dchest} to block at location of victim
    set {_dchest2} to block at location of victim
    add 1 to x-coordinate of {_dchest2}
    set {_c} to 0
    add helmet of victim to {_dchest}
    add chestplate of victim to {_dchest}
    add leggings of victim to {_dchest}
    add boots of victim to {_dchest}
    loop all items in the player's inventory:
        add 1 to {_c}
        add loop-item to {_dchest}
        {_c} is greater than 23:
            {_d} is false:
                set block at location of {_dchest2} to chest
                set {_d} to true
            add loop-item to {_dchest2}
    clear drops
    set {_holo} to block above {_dchest}
    set {_loc} to "X%x-coordinate of {_dchest}%Y%y-coordinate of {_dchest}%Z%z-coordinate of {_dchest}%"
    create interactive holo object "{@hologram}" with id "%{_loc}%" at location of {_holo}
    "{@zaman}" is not "0":
        wait {@zaman} seconds
        delete holo object "%{_loc}%"
        set block at location of {_dchest} to air
        set block at location of {_dchest2} to air

on break of chest:
    set {_dchest} to event-block
    set {_loc} to "X%x-coordinate of {_dchest}%Y%y-coordinate of {_dchest}%Z%z-coordinate of {_dchest}%"
    delete holo object "%{_loc}%"

on hologram touch:
    set {_cx} to the first index of "X" in "%event-string%"
    add 1 to {_cx}
    set {_cy} to the first index of "Y" in "%event-string%"
    add 1 to {_cy}
    set {_cz} to the first index of "Z" in "%event-string%"
    add 1 to {_cz}
    set {_length} to length of "%event-string%"
    set {_cnx} to subtext of event-string from characters {_cx} to ({_cy} - 2)
    set {_cny} to subtext of event-string from characters {_cy} to ({_cz} - 2)
    set {_cnz} to subtext of event-string from characters {_cz} to {_length}
    set {_cnx} to {_cnx} parsed as number
    set {_cny} to {_cny} parsed as number
    set {_cnz} to {_cnz} parsed as number
    set {_loc} to location
    set x-coordinate of {_loc} to {_cnx}
    set y-coordinate of {_loc} to {_cny}
    set z-coordinate of {_loc} to {_cnz}
    open the inventory of the block at {_loc} to player
 
Değerli ziyaretçimiz, içeriği görebilmek için şimdi giriş yapın veya kayıt olun.
buyurun türkçe bulamadım. Zaten mantığını anlayarak türkçeleştirirsiniz.

Ama Skript önermiyorum.
 
Hologram vermiyor
 
Holographic Displays ve Skript SkRayFall eklentilerinin yüklü olması gerekmekte.
 
Tamam yükledim oldu kilit
 
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