Hand Mining Achievement

Place to get help with not working mods / modding interface.
hackamod
Long Handed Inserter
Long Handed Inserter
Posts: 62
Joined: Mon Apr 25, 2022 2:39 pm
Contact:

Hand Mining Achievement

Post by hackamod »

I am trying to make an achievement for catching fish.
Then I noticed there seems to be no way to trigger an achievement for hand mining or hand crafting (only disable for hand crafting)
Please tell me I am missing something.
Is there a way to trigger an achievement for hand mining fish or ore? ..or for hand crafting at least n items?

I tried ProduceAchievementbut it does not seem to be counting fish. I did not test it for ore, but I am more concerned with the fish
Xorimuth
Filter Inserter
Filter Inserter
Posts: 695
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

Re: Hand Mining Achievement

Post by Xorimuth »

You can check in control for the unlock condition, and unlock it using https://lua-api.factorio.com/latest/Lua ... chievement.
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
hackamod
Long Handed Inserter
Long Handed Inserter
Posts: 62
Joined: Mon Apr 25, 2022 2:39 pm
Contact:

Re: Hand Mining Achievement

Post by hackamod »

Yes thank you very much.
with on_player_mined_item and on_pre_player_mined_item to detect when the player mines a fish/ore/etc
This works the way I wanted :D ty
Post Reply

Return to “Modding help”