-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools and better fake_player emulation in general #50
Comments
This is quite ambitious and I like the sentiment, the difficult part here is probably that minetest as well as other mods do sometimes not support lua-entities as easily. |
A 100% solution won't be possible, but I think we're already supporting common APIs such as hopper, etc. A lot of appliances and tools are already usable. I forget which mod I was having trouble integrating with--probably one the the hb mods or calling on_use in my composter bot. The particular problem I'm having is that pointed_thing.ref:is_player() is returning false. The big TODO remaining for this ticket is going to be hb support. |
This can be closed, at least for my branch. The remaining TODO is a separate issue that I'll be addressing in tandem with the central village registry.
|
I've added some PoCs (
gardener
andwizard
) who use items as the player would. I want to extend this feature so that other bots (woodcutter
,miner
,landscaper
, andsnow clearer
) use their wield items to:dig()
. Since tool use will be cross-cutting, affecting multiple AIs, the logic should probably go inasync_functions.lua
, and should handle cycling worn items before breakage (see #24)Better fake_player emulation should make it easier and more seamless/transparent to integrate with various tools, appliances, etc., as well as laying the groundwork for us to support hb mods like mana, hunger, a pooper redo, etc. We may be able to get hbhunger poison effects automatically if we can fix
:is_player()
The text was updated successfully, but these errors were encountered: