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,35 @@
console.info("[SOCIETY] addFishBaits.js loaded");
ServerEvents.highPriorityData((e) => {
global.fish.forEach((fish) => {
const splitFish = fish.item.split(":");
let fishId = splitFish[1];
if (
["barrel", "roe", "meat"].some((denied) => splitFish[1].includes(denied))
)
return;
if (fishId.includes("raw_")) {
if (fishId === "raw_snowflake") fishId = "frosty_fin";
else fishId = fishId.substring(4, fishId.length);
}
e.addJson(
`crabbersdelight:loot_tables/gameplay/crab_trap_loot/society/${fishId}_bait.json`,
{
type: "minecraft:fishing",
pools: [
{
rolls: 1,
bonus_rolls: 0,
entries: [
{
type: "minecraft:item",
weight: 1,
name: fish.item,
},
],
},
],
}
);
});
});