add first patch

This commit is contained in:
2026-07-31 10:34:32 +09:00
parent 03aac2e45e
commit b1cbc6c78d
6390 changed files with 547430 additions and 0 deletions
@@ -0,0 +1,24 @@
console.info("[SOCIETY] bankerBroken.js loaded");
BlockEvents.broken("numismatics:blaze_banker", (e) => {
e.player.tell(Text.translatable("society.blaze_banker.break").red());
});
BlockEvents.rightClicked("numismatics:blaze_banker", (e) => {
const { item, block, level, player } = e;
if (item.hasTag("minecraft:pickaxes")) {
if (
block.getEntityData().TrustListInv
&& block.getEntityData().TrustListInv.Items.length > 0
) {
player.tell(
Text.translatable("society.blaze_banker.break.not_empty").red()
);
} else level.destroyBlock(block.pos, true);
}
});
BlockEvents.rightClicked("create_central_kitchen:blaze_stove", (e) => {
if (e.item.id === "create_central_kitchen:cooking_guide") e.cancel();
});