Skip to main content

๐ŸŒฒ Harvest & Move

script untuk harvest semua tree di world, drop di lokasi Door dan move ke target world. untuk list world bisa kamu convert dari tabel world di website dengan cara Select > Klik Kanan > Export > As script list

# OnLoad - move block & seedโ€‹

silahkan sesuaikan lokasi storage kamu untuk job world_farming dan move_item

# ---- setting --------
var "storageWorld" store text "SEEDSTORAGE|ID"
var "lokasiDropDiStorage" store text "Door left 10x10"
# termasuk seed nya juga
var "lokasiDropPepper" store text "Door"
# tidak perlu diganti apa - apa
var "optTarget" store text "TARGET;Pepper Tree;{var.storageWorld};0;{var.lokasiDropDiStorage},TARGET;Pepper Tree Seed;{var.storageWorld};0;{var.lokasiDropDiStorage}"
# ---------------------
# contoh: jika kamu ada 20 bot, maka "{script.bots.0}" sampai "{script.bots.19}"
execute as "{script.bots.0}" var "worlds" store list ["MYWORLD|ID"]
execute as "{script.bots.1}" var "worlds" store list ["MYWORLD|ID"]
loop "{var.worlds}"
go "{var.loop.value}" await
execute if-true [{var.returnValue.isSuccess}="false"] loop continue
job schedule [name="world_farming",item="Pepper Tree",storage_location="{var.lokasiDropPepper}",type="HARVESTING"]
job wait "world_farming"
execute if-true [{var.returnValue.cancelReason}="bot disconnected"] terminate
job schedule [name="move_item",worlds="SOURCE;Pepper Tree Seed;{var.loop.value},SOURCE;Pepper Tree;{var.loop.value},{var.optTarget}",move_type="MULTIPLE"]
job wait "move_item"
execute if-true [{var.returnValue.cancelReason}="bot disconnected"] terminate
notification raw "done harvest & move di {var.loop.value}"
loop end

# OnLoad - move cakes after harvestโ€‹

silahkan sesuaikan lokasi storage kamu untuk job world_farming dan move_item. bot akan move Balance Mooncake setelah selesai harvest ya, karena world farming belum ada opsi drop saat sedang jalan

setting "delay_after_join" 4
# contoh: jika kamu ada 20 bot, maka "{script.bots.0}" sampai "{script.bots.19}"
execute as "{script.bots.0}" var "worlds" store list ["MYWORLD|ID"]
execute as "{script.bots.1}" var "worlds" store list ["MYWORLD|ID"]
loop "{var.worlds}"
go "{var.loop.value}" await
execute if-true [{var.returnValue.isSuccess}="false"] loop continue
job schedule [name="world_farming",item="Pepper Tree",storage_location="Door",type="HARVESTING"]
job wait "world_farming"
execute if-true [{var.returnValue.cancelReason}="bot disconnected"] terminate
pathfinding @t[location="98:0"]
inventory drop "Balance Mooncake"
job schedule [name="move_item",worlds="SOURCE;Balance Mooncake;{var.loop.value},TARGET;Balance Mooncake;WORLDSTORAGEKAMU|ID;0;Door left 10x10",move_type="MULTIPLE"]
job wait "move_item"
execute if-true [{var.returnValue.cancelReason}="bot disconnected"] terminate
notification raw "done harvest & move BMC di {var.loop.value}"
loop end

kalau pengen move cakes lain, bisa gunakan script ini

setting "delay_after_join" 4
# contoh: jika kamu ada 20 bot, maka "{script.bots.0}" sampai "{script.bots.19}"
execute as "{script.bots.0}" var "worlds" store list ["MYWORLD|ID"]
execute as "{script.bots.1}" var "worlds" store list ["MYWORLD|ID"]
loop "{var.worlds}"
go "{var.loop.value}" await
execute if-true [{var.returnValue.isSuccess}="false"] loop continue
job schedule [name="world_farming",item="Pepper Tree",storage_location="Door",type="HARVESTING"]
job wait "world_farming"
execute if-true [{var.returnValue.cancelReason}="bot disconnected"] terminate
pathfinding @t[location="98:0"]
inventory drop "Balance Mooncake"
inventory drop "Prosperity Mooncake"
inventory drop "Longevity Mooncake"
inventory drop "Harmony Mooncake"
inventory drop "Peace Mooncake"
var "storageWorld" store text "MYWORLD|ID"
var "storageLocation" store text "5:5 left 3x3"
var "balance" store text "SOURCE;Balance Mooncake;{var.loop.value},TARGET;Balance Mooncake;{var.storageWorld};0;{var.storageLocation}"
var "prosperity" store text "SOURCE;Prosperity Mooncake;{var.loop.value},TARGET;Prosperity Mooncake;{var.storageWorld};0;{var.storageLocation}"
var "longevity" store text "SOURCE;Longevity Mooncake;{var.loop.value},TARGET;Longevity Mooncake;{var.storageWorld};0;{var.storageLocation}"
var "harmony" store text "SOURCE;Harmony Mooncake;{var.loop.value},TARGET;Harmony Mooncake;{var.storageWorld};0;{var.storageLocation}"
var "peace" store text "SOURCE;Peace Mooncake;{var.loop.value},TARGET;Peace Mooncake;{var.storageWorld};0;{var.storageLocation}"
job schedule [name="move_item",worlds="{var.balance},{var.prosperity},{var.longevity},{var.harmony},{var.peace}",move_type="MULTIPLE"]
job wait "move_item"
execute if-true [{var.returnValue.cancelReason}="bot disconnected"] terminate
notification raw "done harvest & move BMC di {var.loop.value}"
loop end

# OnLoad - move blocks, seed, cakes & beda storageโ€‹

script ini akan move block, seed, cakes setelah selesai di harvest satu world

# ---- setting --------
var "storageWorld" store text "SEEDSTORAGE|ID"
var "lokasiDropDiStorage" store text "Door left 10x10"
var "storageWorldMooncake" store text "MYWORLD|ID"
# termasuk seed nya juga
var "lokasiDropPepper" store text "Door"
# ---------------------
# contoh: jika kamu ada 20 bot, maka "{script.bots.0}" sampai "{script.bots.19}"
execute as "{script.bots.0}" var "worlds" store list ["MYWORLD|ID"]
execute as "{script.bots.1}" var "worlds" store list ["MYWORLD|ID"]
loop "{var.worlds}"
go "{var.loop.value}" await
execute if-true [{var.returnValue.isSuccess}="false"] loop continue
job schedule [name="world_farming",item="Pepper Tree",storage_location="{var.lokasiDropPepper}",type="HARVESTING"]
job wait "world_farming"
execute if-true [{var.returnValue.cancelReason}="bot disconnected"] terminate
var "balance" store text "SOURCE;Balance Mooncake;{var.loop.value},TARGET;Balance Mooncake;{var.storageWorldMooncake};0;{var.lokasiDropDiStorage}"
var "prosperity" store text "SOURCE;Prosperity Mooncake;{var.loop.value},TARGET;Prosperity Mooncake;{var.storageWorldMooncake};0;{var.lokasiDropDiStorage}"
var "longevity" store text "SOURCE;Longevity Mooncake;{var.loop.value},TARGET;Longevity Mooncake;{var.storageWorldMooncake};0;{var.lokasiDropDiStorage}"
var "harmony" store text "SOURCE;Harmony Mooncake;{var.loop.value},TARGET;Harmony Mooncake;{var.storageWorldMooncake};0;{var.lokasiDropDiStorage}"
var "peace" store text "SOURCE;Peace Mooncake;{var.loop.value},TARGET;Peace Mooncake;{var.storageWorldMooncake};0;{var.lokasiDropDiStorage}"
var "block" store text "SOURCE;Pepper Tree;{var.loop.value},TARGET;Pepper Tree;{var.storageWorld};0;{var.lokasiDropDiStorage}"
var "seed" store text "SOURCE;Pepper Tree Seed;{var.loop.value},TARGET;Pepper Tree Seed;{var.storageWorld};0;{var.lokasiDropDiStorage}"
job schedule [name="move_item",worlds="{var.balance},{var.prosperity},{var.longevity},{var.harmony},{var.peace},{var.block},{var.seed}",move_type="MULTIPLE"]
job wait "move_item"
execute if-true [{var.returnValue.cancelReason}="bot disconnected"] terminate
notification raw "done harvest & move di {var.loop.value}"
loop end

# OnLoad - move setiap ada item di inventoryโ€‹

diperlukan restart server agar bisa menggunakan ini (fitur baru World Farming)

# ------- setting -------
# drop setiap 200 di inventory, lokasi Grass di world WORLD|ID
var "storageLocation" store text "200;0;Grass;WORLD|ID"
# silahkan sesuaikan apa yang pengen kamu move
var "itemList" store list ["Pepper Tree","Pepper Tree Seed","Balance Mooncake","Prosperity Mooncake","Longevity Mooncake","Harmony Mooncake","Peace Mooncake"]
# yang dibawah gaperlu dirubah
var "storageList" store list []
foreach "{var.itemList}" then
var "storageList" add "{var.value};{var.storageLocation}"
foreach end
# -----------------------
execute as "{script.bots.0}" var "worlds" store list ["MYWORLD|ID"]
loop "{var.worlds}"
go "{var.loop.value}" await
execute if-true [{var.returnValue.isSuccess}="false"] loop continue
job schedule [name="world_farming",item="Pepper Tree",storage_location="99:0",type="HARVESTING",start_world="{var.loop.value}",item_storage="{var.storageList.values}"]
job wait "world_farming"
execute if-true [{var.returnValue.cancelReason}="bot disconnected"] terminate
loop end
# drop sisa di inventory
job schedule [name="inventory",items="{var.itemList.values}",storage_option="DEF;0;Grass",amount="0",start_world="STORAGE|ID"]
job wait "inventory"