MineZ Chest

Pentatonix

Zombi Katili
En iyi cevaplar
0
bi sitede gördüm alıntıdır ihtiyacı olanlar vardı galiba kullansınlar.

Kod:
on script load:
    delete {chests.tier1::*}
    delete {chests.tier2::*}
    delete {chests.tier3::*}
    delete {chests.tier4::*}
    delete {chests.tier5::*}
    delete {chests.tier6::*}
    delete {chests.tier7::*}
    delete {chests.tier8::*}
    delete {chests.tier9::*}
    delete {chests.tier10::*}
    if {chests.tier1::*} does not exist:
        add paper named "&rBandage" to {chests.tier1::*}
        add wooden sword to {chests.tier1::*}
        add milk bucket named "&rAntidote" to {chests.tier1::*}
        add apple to {chests.tier1::*}
        add apple to {chests.tier1::*}
        add apple to {chests.tier1::*}
        add leather helmet to {chests.tier1::*}
        add leather chestplate to {chests.tier1::*}
        add leather leggings to {chests.tier1::*}
        add leather boots to {chests.tier1::*}
        add 2 arrows to {chests.tier1::*}
        add cocoa beans to {chests.tier1::*}
        add rotten flesh to {chests.tier1::*}
        add snowball to {chests.tier1::*}
        add water bottle to {chests.tier1::*}
        add potion of instant health to {chests.tier1::*}
        add potion of instant health to {chests.tier1::*}
        set {chests.tier1.max} to 4
    if {chests.tier2::*} does not exist:
        add paper named "&rBandage" to {chests.tier2::*}
        add milk bucket named "&rAntidote" to {chests.tier2::*}
        add apple to {chests.tier2::*}
        add apple to {chests.tier2::*}
        add apple to {chests.tier2::*}
        add 2 cookies to {chests.tier2::*}
        add 2 cookies to {chests.tier2::*}
        add leather helmet to {chests.tier2::*}
        add leather chestplate to {chests.tier2::*}
        add leather leggings to {chests.tier2::*}
        add leather boots to {chests.tier2::*}
        add 2 arrows to {chests.tier2::*}
        add cocoa beans to {chests.tier2::*}
        add rotten flesh to {chests.tier2::*}
        add snowball to {chests.tier2::*}
        add bottle to {chests.tier2::*}
        add potion of instant health to {chests.tier2::*}
        add potion of instant health to {chests.tier2::*}
        add stone sword to {chests.tier2::*}
        add bow to {chests.tier2::*}
        add stone button to {chests.tier2::*}
        add cobweb to {chests.tier2::*}
        set {chests.tier2.max} to 5
    if {chests.tier3::*} does not exist:
        add paper named "&rBandage" to {chests.tier3::*}
        add milk bucket named "&rAntidote" to {chests.tier3::*}
        add apple to {chests.tier3::*}
        add apple to {chests.tier3::*}
        add 2 cookies to {chests.tier3::*}
        add 2 cookies to {chests.tier3::*}
        add 2 cookies to {chests.tier3::*}
        add leather helmet to {chests.tier2::*}
        add leather chestplate to {chests.tier2::*}
        add leather leggings to {chests.tier2::*}
        add leather boots to {chests.tier2::*}
        add 2 arrows to {chests.tier3::*}
        add cocoa beans to {chests.tier3::*}
        add rotten flesh to {chests.tier3::*}
        add snowball to {chests.tier3::*}
        add bottle to {chests.tier3::*}
        add potion of instant health to {chests.tier3::*}
        add potion of instant health to {chests.tier3::*}
        add potion of instant health 2 to {chests.tier3::*}
        add potion of instant health 2 to {chests.tier3::*}
        add stone sword to {chests.tier3::*}
        add bow to {chests.tier3::*}
        add stone button to {chests.tier3::*}
        add cobweb to {chests.tier3::*}
        add cookie to {chests.tier3::*}
        add chainmail boots to {chests.tier3::*}
        set {chests.tier3.max} to 6
    if {chests.tier4::*} does not exist:
        add paper named "&rBandage" to {chests.tier4::*}
        add milk bucket named "&rAntidote" to {chests.tier4::*}
        add apple to {chests.tier4::*}
        add apple to {chests.tier4::*}
        add leather helmet to {chests.tier2::*}
        add leather chestplate to {chests.tier2::*}
        add leather leggings to {chests.tier2::*}
        add leather boots to {chests.tier2::*}
        add 2 arrows to {chests.tier4::*}
        add cocoa beans to {chests.tier4::*}
        add rotten flesh to {chests.tier4::*}
        add snowball to {chests.tier4::*}
        add bottle to {chests.tier4::*}
        add potion of instant health to {chests.tier4::*}
        add potion of instant health to {chests.tier4::*}
        add potion of instant health 2 to {chests.tier4::*}
        add potion of instant health 2 to {chests.tier4::*}
        add stone sword to {chests.tier4::*}
        add stone sword to {chests.tier4::*}
        add bow to {chests.tier4::*}
        add bow to {chests.tier4::*}
        add stone button to {chests.tier4::*}
        add cobweb to {chests.tier4::*}
        add cookie to {chests.tier4::*}
        add 4 cookies to {chests.tier4::*}
        add chainmail boots to {chests.tier4::*}
        add chainmail helmet to {chests.tier4::*}
        set {chests.tier4.max} to 7
    if {chests.tier5::*} does not exist:
        add paper named "&rBandage" to {chests.tier5::*}
        add milk bucket named "&rAntidote" to {chests.tier5::*}
        add apple to {chests.tier5::*}
        add apple to {chests.tier5::*}
        add leather helmet to {chests.tier2::*}
        add leather chestplate to {chests.tier2::*}
        add leather leggings to {chests.tier2::*}
        add leather boots to {chests.tier2::*}
        add 2 arrows to {chests.tier5::*}
        add 5 arrows to {chests.tier5::*}
        add cocoa beans to {chests.tier5::*}
        add rotten flesh to {chests.tier5::*}
        add snowball to {chests.tier5::*}
        add bottle to {chests.tier5::*}
        add splash potion of instant health 2 to {chests.tier5::*}
        add potion of instant health 2 to {chests.tier5::*}
        add potion of instant health 2 to {chests.tier5::*}
        add potion of instant health 2 to {chests.tier5::*}
        add stone sword to {chests.tier5::*}
        add bow to {chests.tier5::*}
        add bow of punch 1 to {chests.tier5::*}
        add stone button to {chests.tier5::*}
        add cobweb to {chests.tier5::*}
        add cookie to {chests.tier5::*}
        add 4 cookies to {chests.tier5::*}
        add 4 cookies to {chests.tier5::*}
        add chainmail boots to {chests.tier5::*}
        add chainmail helmet to {chests.tier5::*}
        add chainmail leggings to {chests.tier5::*}
        add iron sword to {chests.tier5::*}
        set {chests.tier5.max} to 8
    if {chests.tier6::*} does not exist:
        add paper named "&rBandage" to {chests.tier6::*}
        add milk bucket named "&rAntidote" to {chests.tier6::*}
        add apple to {chests.tier6::*}
        add apple to {chests.tier6::*}
        add apple to {chests.tier6::*}
        add leather helmet to {chests.tier2::*}
        add leather chestplate to {chests.tier2::*}
        add leather leggings to {chests.tier2::*}
        add 3 arrows to {chests.tier6::*}
        add 5 arrows to {chests.tier6::*}
        add cocoa beans to {chests.tier6::*}
        add cocoa beans to {chests.tier6::*}
        add rotten flesh to {chests.tier6::*}
        add snowball to {chests.tier6::*}
        add snowball to {chests.tier6::*}
        add bottle to {chests.tier6::*}
        add splash potion of instant health 2 to {chests.tier6::*}
        add splash potion of instant health 2 to {chests.tier6::*}
        add splash potion of instant health 2 to {chests.tier6::*}
        add potion of instant health 2 to {chests.tier6::*}
        add potion of instant health 2 to {chests.tier6::*}
        add splash potion of harming to {chests.tier6::*}
        add stone sword to {chests.tier6::*}
        add stone sword of knockback 1 to {chests.tier6::*}
        add bow to {chests.tier6::*}
        add bow of punch 1 to {chests.tier6::*}
        add stone button to {chests.tier6::*}
        add cobweb to {chests.tier6::*}
        add cookie to {chests.tier6::*}
        add 4 cookies to {chests.tier6::*}
        add 4 cookies to {chests.tier6::*}
        add 2 cookies to {chests.tier6::*}
        add chainmail boots to {chests.tier6::*}
        add chainmail helmet to {chests.tier6::*}
        add chainmail leggings to {chests.tier6::*}
        add chainmail chestplate to {chests.tier6::*}
        add iron sword to {chests.tier6::*}
        add stone axe to {chests.tier6::*}
        set {chests.tier6.max} to 9
    if {chests.tier7::*} does not exist:
        add paper named "&rBandage" to {chests.tier7::*}
        add milk bucket named "&rAntidote" to {chests.tier7::*}
        add apple to {chests.tier7::*}
        add apple to {chests.tier7::*}
        add apple to {chests.tier7::*}
        add leather chestplate to {chests.tier2::*}
        add leather leggings to {chests.tier2::*}
        add 4 arrows to {chests.tier7::*}
        add 5 arrows to {chests.tier7::*}
        add cocoa beans to {chests.tier7::*}
        add cocoa beans to {chests.tier7::*}
        add rotten flesh to {chests.tier7::*}
        add snowball to {chests.tier7::*}
        add snowball to {chests.tier7::*}
        add bottle to {chests.tier7::*}
        add splash potion of instant health 2 to {chests.tier7::*}
        add splash potion of instant health 2 to {chests.tier7::*}
        add splash potion of instant health 2 to {chests.tier7::*}
        add potion of instant health 2 to {chests.tier7::*}
        add splash potion of harming to {chests.tier7::*}
        add splash potion of harming to {chests.tier7::*}
        add stone sword of knockback 1 to {chests.tier7::*}
        add stone sword of sharpness 1 to {chests.tier7::*}
        add bow of punch 1 to {chests.tier7::*}
        add bow of power 1 to {chests.tier7::*}
        add stone button to {chests.tier7::*}
        add cobweb to {chests.tier7::*}
        add cookie to {chests.tier7::*}
        add 4 cookies to {chests.tier7::*}
        add 4 cookies to {chests.tier7::*}
        add 2 cookies to {chests.tier7::*}
        add chainmail boots to {chests.tier7::*}
        add chainmail helmet to {chests.tier7::*}
        add chainmail leggings to {chests.tier7::*}
        add chainmail chestplate to {chests.tier7::*}
        add iron sword to {chests.tier7::*}
        add stone axe of knockback 2 to {chests.tier7::*}
        add iron boots to {chests.tier7::*}
        add ender pearl to {chests.tier7::*}
        set {chests.tier7.max} to 10
    if {chests.tier8::*} does not exist:
        add paper named "&rBandage" to {chests.tier8::*}
        add milk bucket named "&rAntidote" to {chests.tier8::*}
        add apple to {chests.tier8::*}
        add apple to {chests.tier8::*}
        add apple to {chests.tier8::*}
        add leather chestplate to {chests.tier2::*}
        add 2 arrows to {chests.tier8::*}
        add 5 arrows to {chests.tier8::*}
        add 5 arrows to {chests.tier8::*}
        add cocoa beans to {chests.tier8::*}
        add cocoa beans to {chests.tier8::*}
        add rotten flesh to {chests.tier8::*}
        add snowball to {chests.tier8::*}
        add snowball to {chests.tier8::*}
        add bottle to {chests.tier8::*}
        add splash potion of instant health 2 to {chests.tier8::*}
        add splash potion of instant health 2 to {chests.tier8::*}
        add splash potion of instant health 2 to {chests.tier8::*}
        add splash potion of instant health 2 to {chests.tier8::*}
        add splash potion of harming 2 to {chests.tier8::*}
        add splash potion of harming to {chests.tier8::*}
        add splash potion of harming to {chests.tier8::*}
        add splash potion of regeneration to {chests.tier8::*}
        add stone sword of knockback 1 to {chests.tier8::*}
        add stone sword of sharpness 1 to {chests.tier8::*}
        add stone sword of sharpness 2 to {chests.tier8::*}
        add bow of punch 1 to {chests.tier8::*}
        add bow of power 1 to {chests.tier8::*}
        add bow of power 1 and punch 1 to {chests.tier8::*}
        add stone button to {chests.tier8::*}
        add cobweb to {chests.tier8::*}
        add cookie to {chests.tier8::*}
        add 4 cookies to {chests.tier8::*}
        add 4 cookies to {chests.tier8::*}
        add 2 cookies to {chests.tier8::*}
        add chainmail boots to {chests.tier8::*}
        add chainmail boots of feather falling to {chests.tier8::*}
        add chainmail helmet to {chests.tier8::*}
        add chainmail leggings to {chests.tier8::*}
        add chainmail chestplate to {chests.tier8::*}
        add iron sword of knockback 1 to {chests.tier8::*}
        add iron sword to {chests.tier8::*}
        add stone axe of knockback 2 to {chests.tier8::*}
        add iron boots to {chests.tier8::*}
        add iron helmet to {chests.tier8::*}
        add ender pearl to {chests.tier8::*}
        set {chests.tier8.max} to 10
    if {chests.tier9::*} does not exist:
        add paper named "&rBandage" to {chests.tier9::*}
        add milk bucket named "&rAntidote" to {chests.tier9::*}
        add apple to {chests.tier9::*}
        add apple to {chests.tier9::*}
        add apple to {chests.tier9::*}
        add 3 arrows to {chests.tier9::*}
        add 5 arrows to {chests.tier9::*}
        add 5 arrows to {chests.tier9::*}
        add cocoa beans to {chests.tier9::*}
        add cocoa beans to {chests.tier9::*}
        add rotten flesh to {chests.tier9::*}
        add snowball to {chests.tier9::*}
        add snowball to {chests.tier9::*}
        add bottle to {chests.tier9::*}
        add splash potion of instant health 2 to {chests.tier9::*}
        add splash potion of instant health 2 to {chests.tier9::*}
        add splash potion of instant health 2 to {chests.tier9::*}
        add splash potion of harming 2 to {chests.tier9::*}
        add splash potion of harming 2 to {chests.tier9::*}
        add splash potion of harming to {chests.tier9::*}
        add splash potion of regeneration to {chests.tier9::*}
        add splash potion of regeneration 2 to {chests.tier9::*}
        add stone sword of knockback 1 to {chests.tier9::*}
        add stone sword of sharpness 1 to {chests.tier9::*}
        add stone sword of sharpness 2 to {chests.tier9::*}
        add bow of punch 1 to {chests.tier9::*}
        add bow of power 1 to {chests.tier9::*}
        add bow of power 1 and punch 1 to {chests.tier9::*}
        add stone button to {chests.tier9::*}
        add cobweb to {chests.tier9::*}
        add cookie to {chests.tier9::*}
        add 4 cookies to {chests.tier9::*}
        add 4 cookies to {chests.tier9::*}
        add 2 cookies to {chests.tier9::*}
        add chainmail boots to {chests.tier9::*}
        add chainmail boots of feather falling to {chests.tier9::*}
        add chainmail boots of feather falling 2 to {chests.tier9::*}
        add chainmail helmet to {chests.tier9::*}
        add chainmail leggings to {chests.tier9::*}
        add chainmail chestplate to {chests.tier9::*}
        add iron sword of knockback 1 to {chests.tier9::*}
        add iron sword to {chests.tier9::*}
        add stone axe of knockback 2 to {chests.tier9::*}
        add iron boots to {chests.tier9::*}
        add iron helmet to {chests.tier9::*}
        add iron leggings to {chests.tier9::*}
        add ender pearl to {chests.tier9::*}
        add 2 ender pearls to {chests.tier9::*}
        set {chests.tier9.max} to 10
    if {chests.tier10::*} does not exist:
        add paper named "&rBandage" to {chests.tier10::*}
        add milk bucket named "&rAntidote" to {chests.tier10::*}
        add apple to {chests.tier10::*}
        add apple to {chests.tier10::*}
        add apple to {chests.tier10::*}
        add apple to {chests.tier10::*}
        add 4 arrows to {chests.tier10::*}
        add 5 arrows to {chests.tier10::*}
        add 5 arrows to {chests.tier10::*}
        add cocoa beans to {chests.tier10::*}
        add cocoa beans to {chests.tier10::*}
        add rotten flesh to {chests.tier10::*}
        add snowball to {chests.tier10::*}
        add snowball to {chests.tier10::*}
        add snowball to {chests.tier10::*}
        add bottle to {chests.tier10::*}
        add splash potion of instant health 2 to {chests.tier10::*}
        add splash potion of instant health 2 to {chests.tier10::*}
        add splash potion of weakness to {chests.tier10::*}
        add splash potion of harming 2 to {chests.tier10::*}
        add splash potion of harming 2 to {chests.tier10::*}
        add splash potion of harming to {chests.tier10::*}
        add splash potion of regeneration  to {chests.tier10::*}
        add splash potion of regeneration 2 to {chests.tier10::*}
        add splash potion of regeneration 2 to {chests.tier10::*}
        add stone sword of knockback 1 to {chests.tier10::*}
        add stone sword of sharpness 1 to {chests.tier10::*}
        add stone sword of sharpness 2 to {chests.tier10::*}
        add bow of punch 1 to {chests.tier10::*}
        add bow of power 1 to {chests.tier10::*}
        add bow of power 1 and punch 1 to {chests.tier10::*}
        add stone button to {chests.tier10::*}
        add cobweb to {chests.tier10::*}
        add cookie to {chests.tier10::*}
        add 4 cookies to {chests.tier10::*}
        add 4 cookies to {chests.tier10::*}
        add 4 cookies to {chests.tier10::*}
        add 2 cookies to {chests.tier10::*}
        add chainmail boots to {chests.tier10::*}
        add chainmail boots of feather falling to {chests.tier10::*}
        add chainmail boots of feather falling 2 to {chests.tier10::*}
        add chainmail helmet to {chests.tier10::*}
        add chainmail leggings to {chests.tier10::*}
        add chainmail chestplate to {chests.tier10::*}
        add iron sword of knockback 1 to {chests.tier10::*}
        add iron sword of sharpness 1 to {chests.tier10::*}
        add iron sword to {chests.tier10::*}
        add stone axe of knockback 2 to {chests.tier10::*}
        add iron boots to {chests.tier10::*}
        add iron helmet to {chests.tier10::*}
        add iron leggings to {chests.tier10::*}
        add iron chestplate to {chests.tier10::*}
        add ender pearl to {chests.tier10::*}
        add ender pearl to {chests.tier10::*}
        add 2 ender pearls to {chests.tier10::*}
        set {chests.tier10.max} to 10

on right click:
    event-block is a chest
    cancel the event
    if z coordinate of event-block is less than -3500:
        set {_tier} to "10"
    else if z coordinate of event-block is less than -2400:
        set {_tier} to "9"
    else if z coordinate of event-block is less than -2000:
        set {_tier} to "8"
    else if z coordinate of event-block is less than -1600:
        set {_tier} to "7"
    else if z coordinate of event-block is less than -1200:
        set {_tier} to "6"
    else if z coordinate of event-block is less than -800:
        set {_tier} to "5"
    else if z coordinate of event-block is less than -400:
        set {_tier} to "4"
    else if z coordinate of event-block is less than 0:
        set {_tier} to "3"
    else if z coordinate of event-block is less than 400:
        set {_tier} to "2"
    else:
        set {_tier} to "1"
    if {chests.timer.%location of event-block%} does not exist:
        set {chests.timer.%location of event-block%} to now
        clear event-block's inventory
        set {_lootnumber} to round(random number between 1 and {chests.tier%{_tier}%.max})
        loop {_lootnumber} times:
            set {_item} to a random element out of {chests.tier%{_tier}%::*}
            if {_lastitem} does not exist:
                set {_lastitem} to 0
            {_lastitem} is not id of {_item}
            loop random number between 1 and 20 times:
                add stone pickaxe named "placeholder" to inventory of event-block
            add {_item} to inventory of event-block
            loop items in inventory of event-block:
                name of loop-item is "placeholder"
                delete loop-item
            set {_lastitem} to id of {_item}
    else if difference between now and {chests.timer.%location of event-block%} is more than 5 minutes:
        set {chests.timer.%location of event-block%} to now
        clear event-block's inventory
        set {_lootnumber} to round(random number between 1 and {chests.tier%{_tier}%.max})
        loop {_lootnumber} times:
            set {_item} to a random element out of {chests.tier%{_tier}%::*}
            if {_lastitem} does not exist:
                set {_lastitem} to 0
            {_lastitem} is not id of {_item}
            loop random number between 1 and 20 times:
                add stone pickaxe named "placeholder" to inventory of event-block
            add {_item} to inventory of event-block
            loop items in inventory of event-block:
                name of loop-item is "placeholder"
                delete loop-item
            set {_lastitem} to id of {_item}
    open event-block's inventory for player
 

Prefer

Kızıltaş Madencisi
En iyi cevaplar
0
Benim mineZ skriptlerim var keşke paylaşmadan önce söyleseydin yazardım :( Bu aklıma gelmemişti
 
Üst