Structure exploration tasks are triggered whenever you're in a referenced chunk, which means you'll explore mineshafts and ocean monuments without even looking (or digging)
How to Reproduce?
Create a structure task for a mineshaft
walk around on the surface (or, above a mineshaft, specifically)
toast!
Expected Behavior
This always bothered us in FTB quests, and it can be fixed here.
Checking the structure bounding box isn't good enough, but checking the piece bounding boxes is.
Here's a snippet from our current project that does exactly this while dodging the 50 footguns of this part of vanilla code. We also use a block raycast to check where the player is looking, but that's not relevant for heracles.
There's a small segment in it that refers to whether a player has explored a structure or not - that would instead be if the player has an unlocked structure task for that structure.
You have written permission to adapt it with co-authorship & a javadoc comment
Version
1.1.11
Mod Loader Version
-
Mod Loader
No response
Logs or additional context
No response
Code of Conduct
[X] I have searched the issue tracker and confirmed that the issue has not been reported
[X] I have checked the FAQ (if one is present) and my issue is not listed
[X] I have verified that I am using the latest version of the mod
[X] I have verified that I have installed all the required dependencies for the mod
[X] I have verified that I do not have Optifine installed. We will close issues if we detect Optifine is in your pack. We cannot fix Optifine issues. Please do not report issues with Optifine present.
Bug Description
Structure exploration tasks are triggered whenever you're in a referenced chunk, which means you'll explore mineshafts and ocean monuments without even looking (or digging)
How to Reproduce?
Create a structure task for a mineshaft
walk around on the surface (or, above a mineshaft, specifically)
toast!
Expected Behavior
This always bothered us in FTB quests, and it can be fixed here.
Checking the structure bounding box isn't good enough, but checking the piece bounding boxes is.
Here's a snippet from our current project that does exactly this while dodging the 50 footguns of this part of vanilla code. We also use a block raycast to check where the player is looking, but that's not relevant for heracles.
There's a small segment in it that refers to whether a player has explored a structure or not - that would instead be if the player has an unlocked structure task for that structure.
You have written permission to adapt it with co-authorship & a javadoc comment
Version
1.1.11
Mod Loader Version
-
Mod Loader
No response
Logs or additional context
No response
Code of Conduct