Item Pack
Listing bundle shop in-game. Snapshot pas runtime startup — catalog gak refresh per-call, jadi cache hasilnya kalau iterasi sering.
for i, pack in pairs(getPacks()) do
pack.id
pack.price
pack.discount
pack.drops
pack.category
pack.vip
pack.steam
pack.onetime
pack.weight
end
Listing
getPacks()
| Field | Type |
|---|---|
| Signature | () → {ItemPack} |
| Returns | {ItemPack} — catalog 1-indexed semua pack yang client:buy(id) terima |
| Async | no |
Captured dari proses PixelWorlds 2.0.33 live. Refresh dump-nya via scripts/dump_packs.py kalau game di-patch.
for _, pack in ipairs(getPacks()) do
if pack.category == "Locks" then
print(pack.id, pack.price)
end
end
Field ItemPack
| Field | Type | Catatan |
|---|---|---|
id | string | Identifier pack (contoh "HomeKit", "WorldLock"). Pass ke client:buy(id). |
category | string | Salah satu dari 16 bucket catalog — lihat di bawah. |
price | number | Harga dasar dalam gem. |
discount | number | Discount gem off price. Hampir selalu 0 di luar window event. |
vip | boolean | True kalau pack VIP-only. |
steam | boolean | True kalau pack Steam-store-only. |
onetime | boolean | True kalau pack cuma bisa dibeli sekali per akun. |
weight | number | Weight random-drop. Saat ini selalu 0 — catalog gak enumerasi weight per-tier. |
drops | {[any]: any} | Selalu tabel kosong — isi pack gak di-expose via dump catalog. Pake tooltip in-game atau dokumen spec dulu. |
Categories
Kits, Themes, FashionPack, Seeds, Locks, Fishing, Familiars, Pets, Orbs, Cards, Wiring, Items, Nether, Blueprints, Community, Clan.
Beli lewat client:buy("PackId").