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,31 @@
console.info("[SOCIETY] treechopSkill.js loaded");
BlockEvents.broken("treechop:chopped_log", (e) => {
const { player, block, level } = e;
if (Math.random() <= 0.005 && !player.stages.has("wuthering_logs")) {
block.popItem("society:wuthering_logs");
}
if (
Math.random() <= 0.15 &&
player.stages.has("wuthering_logs") &&
block.id === "treechop:chopped_log"
) {
block.popItem("meadow:fire_log");
}
const season = global.getSeasonFromLevel(level);
if (
Math.random() <= 0.005 &&
season === "autumn" &&
!player.stages.has("alias_moss")
) {
block.popItem("society:alias_moss");
}
if (
Math.random() <= 0.08 &&
(player.stages.has("alias_moss") || season === "autumn") &&
block.id === "treechop:chopped_log"
) {
block.popItem("society:mossberry");
}
});