Yenileme [İstek]

ByDeichor

Kızıltaş Madencisi
En iyi cevaplar
0
Bir worlddeki sandıklara % ile eşya dağıtılsın örneğin bir sandıkta elmas balta olma olasılığı %1 filan olsun yani Hunger Gamesdeki sandık özelliği olabilir mi ? Ve ayrıca sandıklar 20 Dakikada bir yenilenmesi gerek. Böyle bir skript yazılabilir mi ? Pluginde olur farketmez.
 

Treil

Kömür Madencisi
En iyi cevaplar
0
Deneyebilirsin, yüzde oranları sana kalmış
Kod:
on rightclick on chest:
if {lootchest::%block%} is set:
  chance of 25%:
   clear the clicked block's inventory
   set slot random integer between 0 and 26 of clicked block to wood sword
   set slot random integer between 0 and 26 of clicked block to leather cap
   stop
 
Son düzenleme:

KosovAli27

Zombi Katili
En iyi cevaplar
0
Deneyebilirsin, yüzde oranları sana kalmış
Kod:
on rightclick on chest:
if {lootchest::%block%} is set:
  chance of 25%:
   clear the clicked block's inventory
   set slot random integer between 0 and 26 of clicked block to wood sword
   set slot random integer between 0 and 26 of clicked block to leather cap
   stop
bu dediğin her sağ tıklayışında veriyo itemleri
 

Rosenrot

LAGOMORPHA
En iyi cevaplar
0
PHP:
Options:
    taramaalani: 300
command /merkezbelirle:
    trigger:
        set {sandik.tarama.merkez} to location of player
        wait 1 ticks
        if {sandik.tarama.merkez} is set:
            send "<Light green>>><Pink>Sandık tarama merkezi %location of player% olarak ayarlandı" to player
            loop all blocks in radius {@taramaalani} of {sandik.tarama.merkez}:
                if loop-block is a chest:
                    if chance of 40%:
                        add 1 leather cap to loop-block's inventory
                    else if chance of 40%:
                        add 1 leather trousers to loop-block's inventory
                    else if chance of 40%:
                        add 1 leather boots to loop-block's inventory
                    if chance of 40%:
                        add 1 leather tunic to loop-block's inventory
                    if chance of 66%:
                        add random number between 1 and 4 of apple to loop-block's inventory
                    chance of 1%:
                        add 1 diamond axe to loop-block's inventory
                   
every 20 minutes:
    if 1 is 1:
        if 1 is 1:
            loop all blocks in radius {@taramaalani} of {sandik.tarama.merkez}:
                if loop-block is a chest:
                    if chance of 40%:
                        add 1 leather cap to loop-block's inventory
                    else if chance of 40%:
                        add 1 leather trousers to loop-block's inventory
                    else if chance of 40%:
                        add 1 leather boots to loop-block's inventory
                    if chance of 40%:
                        add 1 leather tunic to loop-block's inventory
                    if chance of 66%:
                        add random number between 1 and 4 of apple to loop-block's inventory
                    chance of 1%:
                        add 1 diamond axe to loop-block's inventory
koddaki if 1 is 1 leri görmezden gel üşendim tek tek silmeyi boşlukları :D
Edit: tarama alanını sunucunun donanımına göre ayarla
 
Son düzenleme:

KosovAli27

Zombi Katili
En iyi cevaplar
0
PHP:
command /merkezbelirle:
    trigger:
        set {sandik.tarama.merkez} to location of player
        wait 1 ticks
        if {sandik.tarama.merkez} is set:
            send "<Light green>>><Pink>Sandık tarama merkezi %location of player% olarak ayarlandı" to player
            loop all blocks in radius 500 of {sandik.tarama.merkez}:
                if loop-block is a chest:
                    if chance of 40%:
                        add 1 leather cap to loop-block's inventory
                    else if chance of 40%:
                        add 1 leather trousers to loop-block's inventory
                    else if chance of 40%:
                        add 1 leather boots to loop-block's inventory
                    if chance of 40%:
                        add 1 leather tunic to loop-block's inventory
                    if chance of 66%:
                        add random number between 1 and 4 of apple to loop-block's inventory
                    chance of 1%:
                        add 1 diamond axe to loop-block's inventory
                   
every 20 minutes:
    if 1 is 1:
        if 1 is 1:
            loop all blocks in radius 500 of {sandik.tarama.merkez}:
                if loop-block is a chest:
                    if chance of 40%:
                        add 1 leather cap to loop-block's inventory
                    else if chance of 40%:
                        add 1 leather trousers to loop-block's inventory
                    else if chance of 40%:
                        add 1 leather boots to loop-block's inventory
                    if chance of 40%:
                        add 1 leather tunic to loop-block's inventory
                    if chance of 66%:
                        add random number between 1 and 4 of apple to loop-block's inventory
                    chance of 1%:
                        add 1 diamond axe to loop-block's inventory
koddaki if 1 is 1 leri görmezden gel üşendim tek tek silmeyi boşlukları :D
bu ne yappıyo tam anlamdım tüm haritadaki sandıklarımı seçiyo ?

bi denim dedim server çöktü la
 

Singularity

Lapis Toplayıcısı
En iyi cevaplar
1
Her yenilediğinde sunucu çöküyor hocam ne cevabı ?
300 blok loop'lanırsa çöker zaten. Tek tek eklemek istiyorsanız sandıkları şöyle bir şey var.
/sandıkseçici yazıp eşyayı alınız ve sandıkları sağ tuş ile seçiniz. Sandıkları silmek içinde sol tuşla tıklayın. Altta every 5 seconds yazan yerdeki add.. slotunu çoğaltıp spawnlanmasını istediğiniz eşyaları belirleyebilirsiniz.
Kod:
command /sandıkseçici:
    permission: ben.adminim
    trigger:
        give 1 of blaze rod named "&6Sandık Seçici" to player
        send "&6> &aSandık seçme eşyası alındı."
        stop
      
on rightclick on chest:
    player's tool is blaze rod
    name of held item is "&6Sandık Seçici"
    cancel event
    loop {sandıklistesi::*}:
        if loop-value is location of event-block:
            send "&6> &cBu sandık zaten seçilmiş!"
            stop
    send "&6> &aSandık başarıyla seçildi."
    add location of event-block to {sandıklistesi::*}
    stop
  
on leftclick on chest:
    player's tool is blaze rod
    name of held item is "&6Sandık Seçici"
    cancel event
    loop {sandıklistesi::*}:
        if loop-value is location of event-block:
            remove loop-value from {sandıklistesi::*}
            send "&6> &aSandık başarıyla listeden kaldırıldı."
            stop
    send "&6> &cSandık zaten seçilmemiş!"
    stop
  
every 5 seconds:
    loop {sandıklistesi::*}:
        add 1 iron ingot to slot random integer between 0 and 26 of block at loop-value
 

KosovAli27

Zombi Katili
En iyi cevaplar
0
300 blok loop'lanırsa çöker zaten. Tek tek eklemek istiyorsanız sandıkları şöyle bir şey var.
/sandıkseçici yazıp eşyayı alınız ve sandıkları sağ tuş ile seçiniz. Sandıkları silmek içinde sol tuşla tıklayın. Altta every 5 seconds yazan yerdeki add.. slotunu çoğaltıp spawnlanmasını istediğiniz eşyaları belirleyebilirsiniz.
Kod:
command /sandıkseçici:
    permission: ben.adminim
    trigger:
        give 1 of blaze rod named "&6Sandık Seçici" to player
        send "&6> &aSandık seçme eşyası alındı."
        stop
     
on rightclick on chest:
    player's tool is blaze rod
    name of held item is "&6Sandık Seçici"
    cancel event
    loop {sandıklistesi::*}:
        if loop-value is location of event-block:
            send "&6> &cBu sandık zaten seçilmiş!"
            stop
    send "&6> &aSandık başarıyla seçildi."
    add location of event-block to {sandıklistesi::*}
    stop
 
on leftclick on chest:
    player's tool is blaze rod
    name of held item is "&6Sandık Seçici"
    cancel event
    loop {sandıklistesi::*}:
        if loop-value is location of event-block:
            remove loop-value from {sandıklistesi::*}
            send "&6> &aSandık başarıyla listeden kaldırıldı."
            stop
    send "&6> &cSandık zaten seçilmemiş!"
    stop
 
every 5 seconds:
    loop {sandıklistesi::*}:
        add 1 iron ingot to slot random integer between 0 and 26 of block at loop-value
Haritada cok fazla sandik var ve nerde oldugunu bilmiyorum hepsijin bu yolla yapmam imkansız
 
Üst