Ölünce Eşayaları Chest'de Olucak

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

Prisma

HIGH & CHILL
Katılım
7 Nisan 2018
Mesajlar
126
Elmaslar
34
Puan
6.420
Konum
bu seni hiç alakadar etmez
Selamlar Millet

Öncellikle Istediğim Skript Şudur;

Simdi ben bir oyuncuyu öldürdüğümde esyaları yere değilde orda chest olucak esyaları orada olucak.

Yapanlar Icin Teşekkürler.
 
Skript kodlayıcısıyım diye geçinirler 4 satırlık sisteme zor diyorlar:/
Kod:
on death of player:
    set block at location of player to chest
    add all items in player's inventory to block at location of player's inventory
    clear player's inventory
 
biraz geç oldu ama forumda dolaşırken gördüm elimde vardı paylaşmak istedim.



Kod:
options:
    message: &eSandık Sahibi &7%player%
    sound: ORB_PICKUP

on death of player:
    play "{@sound}" to attacker
    set the block at location of victim to chest
    set {_dchest} to block at location of victim
    add inventory of victim to {_dchest}
    add helmet of victim to {_dchest}
    add chestplate of victim to {_dchest}
    add leggings of victim to {_dchest}
    add boots of victim to {_dchest}
    clear drops
    set {_holo} to block above {_dchest}
    set {_x} to x-coordinate of {_dchest}
    add 0.5 to {_x}
    set {_y} to y-coordinate of {_dchest}
    add 0.5 to {_y}
    set {_z} to z-coordinate of {_dchest}
    add 0.5 to {_z}
    if {_x} is less than 0:
        set {_xs} to 1
        set {_x} to -1*{_x}
    else:
        set {_xs} to 0
    if {_z} is less than 0:
        set {_zs} to 1
        set {_z} to -1*{_z}
    else:
        set {_zs} to 0
    set {_loc} to (10000000000*{_xs} + 1000000000*{_zs} + 1000000*{_x} + 1000*{_y} + {_z})
    create interactive holo object "{@message}" with id "%{_loc}%" at location of {_holo}

on break of chest:
    set {_x} to x-coordinate of block
    add 0.5 to {_x}
    set {_y} to y-coordinate of block
    add 0.5 to {_y}
    set {_z} to z-coordinate of block
    add 0.5 to {_z}
    if {_x} is less than 0:
        set {_xs} to 1
        set {_x} to -1*{_x}
    else:
        set {_xs} to 0
    if {_z} is less than 0:
        set {_zs} to 1
        set {_z} to -1*{_z}
    else:
        set {_zs} to 0
    set {_loc} to (10000000000*{_xs} + 1000000000*{_zs} + 1000000*{_x} + 1000*{_y} + {_z})
    delete holo object "%{_loc}%"

on hologram touch:
    set {_id} to "%event-string%" parsed as number
    set {_xs} to floor({_id}/10000000000)
    set {_zs} to floor(({_id} - {_xs}*10000000000)/1000000000)
    set {_id} to ({_id} - ({_xs}*10000000000 + {_zs}*1000000000))
    set {_x} to floor({_id}/1000000)
    set {_id} to ({_id} - {_x}*1000000)
    set {_y} to floor({_id}/1000)
    set {_id} to ({_id} - {_y}*1000)
    set {_z} to floor({_id})
    if {_xs} is equal to 1:
        set {_x} to -1*{_x}
    if {_zs} is equal to 1:
        set {_z} to -1*{_z}
    set {_location} to location
    subtract 0.5 from {_x}
    subtract 0.5 from {_y}
    subtract 0.5 from {_z}
    set x-coordinate of {_location} to {_x}
    set y-coordinate of {_location} to {_y}
    set z-coordinate of {_location} to {_z}
    open the inventory of the block at {_location} to player
 
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