Skip to content

Commit

Permalink
Merge pull request #6 from Adr-hyng/tacos_fish_compatibility_update
Browse files Browse the repository at this point in the history
Tacos fish compatibility update
  • Loading branch information
Adr-hyng authored Sep 15, 2024
2 parents 34d1d50 + f14d06e commit c548014
Show file tree
Hide file tree
Showing 65 changed files with 4,125 additions and 1,049 deletions.
153 changes: 0 additions & 153 deletions BP/entities/coelacanth.json

This file was deleted.

31 changes: 21 additions & 10 deletions BP/entities/fishing_hook.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,30 +178,41 @@
}
},
{
"filters": {
"test": "has_biome_tag",
"value": "mangrove_swamp"
},
"filters": [
{
"any_of": [
{
"test": "has_biome_tag",
"value": "mangrove_swamp"
},
{
"test": "is_biome",
"value": "swamp"
}
]
}
],

"set_property": {
"yn:current_biome_bit": 11
}
},
{
"filters": {
"test": "is_biome",
"value": "swamp"
"test": "has_biome_tag",
"value": "lush_caves"
},
"set_property": {
"yn:current_biome_bit": 11
"yn:current_biome_bit": 12
}
},
{
"filters": {
"test": "has_biome_tag",
"value": "lush_caves"
"test": "is_biome",
"value": "taiga"
},
"set_property": {
"yn:current_biome_bit": 12
"yn:current_biome_bit": 13
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion BP/functions/AnglersDesire/reload.mcfunction
Original file line number Diff line number Diff line change
@@ -1 +1 @@
execute as @s[hasitem={item=minecraft:fishing_rod}] run scriptevent yn:anglers dev_helper reload
scriptevent yn:anglers dev_helper update
1 change: 1 addition & 0 deletions BP/functions/AnglersDesire/reload_hook.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
execute as @s[hasitem={item=minecraft:fishing_rod}] run scriptevent yn:anglers dev_helper reload
1 change: 0 additions & 1 deletion BP/functions/AnglersDesire/update.mcfunction

This file was deleted.

4 changes: 2 additions & 2 deletions BP/loot_tables/gameplay/mystery_bottle.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"entries": [
{
"type": "item",
"name": "minecraft:map",
"name": "minecraft:filled_map",
"weight": 1,
"functions": [
{
Expand All @@ -16,7 +16,7 @@
},
{
"type": "item",
"name": "minecraft:map",
"name": "minecraft:filled_map",
"weight": 3,
"functions": [
{
Expand Down
14 changes: 7 additions & 7 deletions BP/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"format_version": 2,
"header": {
"name": "Angler's Desire BP §8(1.1.0) [DEBUG]",
"name": "Angler's Desire BP §8(1.0.2)",
"description": "Adding immersion to vanilla fishing mechanics in Minecraft \n @Made By: https://twitter.com/h_YanG_0A",
"uuid": "f36713ae-a50d-4eae-ab09-14bef4e580ec",
"version": [
1,
1,
0
0,
2
],
"min_engine_version": [
1,
Expand All @@ -33,8 +33,8 @@
"uuid": "02a44d23-5962-4bb5-8a78-ef87d1eb0726",
"version": [
1,
1,
0
0,
2
],
"entry": "scripts/main.js"
}
Expand All @@ -55,8 +55,8 @@
"uuid": "54ee84f3-7b81-421c-8602-2d399940fd59",
"version": [
1,
1,
0
0,
2
]
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export const serverConfiguration = {
/**
* Enables debug messages to content logs.
*/
debug: new FormBuilder("Debug Mode").createToggle(true),
debug: new FormBuilder("Debug Mode").createToggle(false),
};

export let serverConfigurationCopy = cloneConfiguration(serverConfiguration);
export let setServerConfiguration = (newServerConfig) => serverConfigurationCopy = newServerConfig;
export let resetServerConfiguration = () => serverConfigurationCopy = cloneConfiguration(serverConfiguration);

// version (do not change)
export const VERSION = "1.1.0";
export const VERSION = "1.0.2";
2 changes: 1 addition & 1 deletion BP/scripts/fishing_system/events/on_hook_item.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function onHookedItem(fisher) {
const hookLandedVector = fisher.fishingHook.stablizedLocation;
const isDeeplySubmerged = fisher.fishingHook.isDeeplySubmerged;
const enchantmentLevel = fisher.fishingRod.getLuckOfSea()?.level ?? 0;
const drops = player.dimension.spawnLoot(LootTable[fisher.currentBiomeLootTable[fisher.currentBiome]](enchantmentLevel, isDeeplySubmerged, fisher.fishingRod.upgrade), hookLandedVector);
const drops = player.dimension.spawnLoot(LootTable[fisher.currentBiomeLootTable[fisher.currentBiome]](enchantmentLevel, isDeeplySubmerged, fisher), hookLandedVector);
fisher.setEntityCaughtByHook(drops[0]);
fisher.reelHook();
localFishersCache.set(player.id, fisher);
Expand Down
9 changes: 0 additions & 9 deletions BP/scripts/fishing_system/loot_tables/biomes/DefaultCatch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { MinecraftItemTypes } from "vanilla-types/index";
import { ParentCatchLoot } from "../biome_catch_helper";
import { MyCustomItemTypes } from "fishing_system/items/custom_items";
export class DefaultCatch extends ParentCatchLoot {
static Loot(modifier, fisher, entityLoots, RAIN_INCREASE = 150) {
const upgrade = fisher.fishingRod.upgrade;
Expand Down Expand Up @@ -78,14 +77,6 @@ export class DefaultCatch extends ParentCatchLoot {
"rolls": 1,
"weight": treasureWeight,
"entries": [
{
"item": MyCustomItemTypes.MysteryBottle,
"weight": 5
},
{
"item": MinecraftItemTypes.NautilusShell,
"weight": 5
},
{
"item": MinecraftItemTypes.Waterlily,
"weight": 5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { ItemTypes } from "@minecraft/server";
import { TacosFishEntityTypes } from "fishing_system/entities/compatibility/tacos_fish_mobs";
class CompatibilityLootManager {
static get TacosFish() {
return ItemTypes.get('taco:catfish');
return ItemTypes.get(TacosFishEntityTypes.Bass);
}
}
export class CompatibleAddonHandler {
static getAll() {
const allAvailableCompatibleAddons = Object.getOwnPropertyNames(CompatibilityLootManager).filter((prop) => !(['length', 'name', 'prototype'].includes(prop)));
return allAvailableCompatibleAddons;
}
static isInstalled(addonCompatibilityName) {
return CompatibilityLootManager[addonCompatibilityName] !== undefined;
}
Expand Down
Loading

0 comments on commit c548014

Please sign in to comment.