hasAnyStage does not seem to work with fishing
katubug opened this issue ยท 3 comments
Minecraft Version
1.20.1
Mod Version
2.12.0
Describe the bug!
When I attempt to add the "hasAnyStage" condition to a fishing loot table entry, it is never met, even if the player has the stage correctly added. I have tested this both with and without the Tide mod that you see in my logs.
Gist contains my latest.log, my kubejs/server.log, and my loot_editing.js script for reference. I can also confirm that hasAnyStage works fine in every other way I have used it, aside from fishing. And the fishing scripts works fine without hasAnyStage. Let me know if I can provide any more information! Thank you for your time :)
Crash Report
No response
Log
https://gist.github.com/katubug/60464b55cf28ad43da04629869cea67e
Additions and Modifications
No
Additions and Modifications Description
I'm not actually sure how to answer this. This is my own modpack I'm developing, so yes I have made changes vs vanilla, but no I have not altered the mods in any way outside of scripts and configs.
Did the issue happen in singleplayer or on a server?
Singleplayer
LootJS.modifiers((event) => {
event.addLootTableModifier("minecraft:gameplay/fishing")
.logName("aberrant_fish")
.hasAnyStage(['insight_shop'])
// .randomChance(0.01)
.removeLoot(Ingredient.all)
.addLoot("minecraft:diamond")
});
Works for me. How do you add the stage?
Hi, thanks for your response, and apologies for the delay! The stage is added via kubejs script.