All checks were successful
Deploy Addons / deploy (push) Successful in 16s
- New postal-service-addon: per-player mailboxes + post-office send block (ActionForm recipient picker, offline notification queue, chunk-load retry via tickingarea) - Commit previously untracked private-chest, home-sign, keep-inventory addons and their docker-compose mounts - Deploy workflow: add postal + previously unwired addons to path filter and checkout list; drop easter-egg from deployment - enabled_packs.json: register postal UUIDs for Lyla + Mya Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
18 lines
570 B
JavaScript
18 lines
570 B
JavaScript
import { world, system } from "@minecraft/server";
|
|
|
|
function assertKeepInventory() {
|
|
try {
|
|
world.getDimension("overworld").runCommand("gamerule keepInventory true");
|
|
} catch (e) {
|
|
// Non-fatal — chunk-load races, etc. The next interval will retry.
|
|
}
|
|
}
|
|
|
|
system.run(() => {
|
|
assertKeepInventory();
|
|
world.sendMessage("§a[Keep Inventory] §7keepInventory enforced — items stay on death.");
|
|
});
|
|
|
|
// Re-assert every 10 minutes so anything that toggles it off (manual op, world reset, etc.) gets corrected.
|
|
system.runInterval(assertKeepInventory, 12000);
|