Human and humanoid is a special feature added in SpongeAPI. Somehow, this feature is not native to vanilla, so it lacks a system of AI that is specially designed for Humans. (Humanoid are not agents) Will there be an outline of ai for human included in the api? Examples are the animal riding ai, villager trading ai, inventory sorting ai, etc. This is unclear for now and I left it on the forum for further discussion.
I think you’re forgetting there’s such a thing as Human
s, which from what I can tell, extend Creature
and by extension, Agent
. You’re perfectly well able to assign AITask
s to Human
s. Other things are strictly Player
required as they’re limited to whatever a client can be connected to.
I mean AIs for things that only Humanoids can do, for example, trading with villagers, taming animals, etc.
Not gonna happen. Human
entities are considered to be Creature
s which are completely incompatible with Player
entities.
Already doable, just have to set the TameableData
on the animal you want them to tame.
You must remember that there’s certain limitations with how the game mechanics work and prejudices that the vanilla minecraft code dictates such that making sweeping changes (such as introducing an artificial Human
entity that isn’t actually an EntityPlayer
) and making that compatible with all the current game mechanics is difficult if not close to impossible. You’re essentially asking for support to do something that is a core-mod’s job to work on, and something that isn’t quite integral to the API (like associating a PlayerInventory
to a Human
will not work).
See this:
https://github.com/SpongePowered/SpongeAPI/blob/master/src/main/java/org/spongepowered/api/entity/living/Villager.java#L39-L40
Villagers trade with Humanoids!
Ok I would prefer to hang this question here. Thanks very much.