They're neutral at the day time while you didn't hurt them. If you're OK with that, you could try to remove some lines from init.lua which makes them hostile at the night time.
A little offtopic... or not?
Anyway, I've noticed (yeah, I've read changelog ;)) that players are 3d now and they share the same model with NPCs, right?
So, PilzAdam, is there a way to add selected item mesh to the "hands" of npc/player? (Maybe by using added in 0.4.4 ability to "link" the entities?) That way anyone would know whether another player/mob is preparing an attack with his/her sword or just holding some block.
I'm saying "mobs", because a hostile 24/7 NPC is a mob to me :)
Moreover, is it possible to make mobs "draw their weapons" when they get hurt by someone?
And even more: could you possibly add some kind of config file, so mod would read it and add various NPC?
That file could be smth like this:
- Code: Select all
+---------------+------------------------+--------------------------------+-----------------------------+
| | Name, HP, Speed, | | |
| ID | Weapon, Mesh, Textures | Type | profession |
+---------------+------------------------+--------------------------------+-----------------------------+
| IDK for | Obvious for a mob/npc | 0 - neutral mob | if type=0 or type=1 then: |
| what purpose, | properties, maybe some | (never becomes hostile, | 0 - animal (domestic/wild) |
| it's just a | privileges, like | but runs away if hurt) | 1..n - npc/villager |
| habbit ;) | flying (but the last | 1 - passive mob #1 | |
| | one is too early to | (becomes hostile, if hurt) | IDK, what "professions" are |
| | think about). | 2 - passive mob #2 | needed, but it'll be good |
| | | (hostile at night, | to have a Smith and a |
| | | otherwise passive; | merchant. Maybe a doctor |
| | | becomes hostile, if hurt) | would be nice. |
| | | 3 - regular mob (hostile 24/7) | |
+---------------+------------------------+--------------------------------+-----------------------------+
Using such a file could help others to add their own mobs/npc.
PS: All above is just questions, though. Don't get me wrong, please!