diff --git a/README.md b/README.md new file mode 100755 index 0000000..77a10ba --- /dev/null +++ b/README.md @@ -0,0 +1,51 @@ +-- + +**Warning** : This mod is not finished and should be considered very unstable +also it will have to be renamed to avec confusion with other mods + + This is adds some npcs for mobs_redo + Lots of textures, code and ideas are taken from various other mods + (Tell me if someone who should be credited isn't) + +-- + +# Mobs NPC + +This mod adds some NPCs + +Basic NPCS +-------------------------------- + +Those are aimed to make exploring more interesting. + +-[x] They spawn on grass or forest soil +-[x] They wander around and say random things when right-clicked +-[ ] They turn to monster when killed at night + + +Custom NPCs (aka idlers) +-------------------------------- + +Those are aimed to make it easy for any player to populate their constructions with interesting encounters, maybe even create some basic quests. + +-[x] Discret spawner block configurable with right-click +-[x] Re-spawn on right-click on the spawner +-[x] Easy to configure interface +-[x] Customisable nametag, look and infotext +-[ ] Player defined idle action : stand, sit, lay +-[-] Customisable actions + -[x] Can say random things from default list + -[x] Can say random things or from a custom list defined by player + -[ ] Can ask for items + -[ ] Can ask questions + -[ ] Can give item + -[ ] Can heal + -[ ] Can trade + +Planned features +-------------------------------- + +-[ ] Villagers (spawn near beds and stick around) +-[ ] Zombie workers + +___________________________________________________ diff --git a/npc_custom.lua b/npc_custom.lua index 4d1a489..7c84f85 100755 --- a/npc_custom.lua +++ b/npc_custom.lua @@ -115,9 +115,9 @@ mobs.npcs.interactions = { }, say = { icon = icprefix..'chat.png', - desc = S("Say one of the line below as a chat message"), + desc = S("Say one of the lines below as a chat message"), formfields = { - {'textarea','message','',3}, + {'textarea','message','',4}, }, on_rightclick = mobs.npcs.message_on_rightclick, }, @@ -195,7 +195,7 @@ local function get_npc_formspec(pos,n) local spos = pos.x .. "," .. pos.y .. "," .. pos.z local ww=8 -- window width local wh=9 -- window height - local fw=4 -- field_width + local fw=5 -- field_width local iy=0.5 -- index y -- Texture list as a sring diff --git a/screenshot_01.png b/screenshot_01.png new file mode 100644 index 0000000..8f15d77 Binary files /dev/null and b/screenshot_01.png differ diff --git a/screenshot_02.png b/screenshot_02.png new file mode 100644 index 0000000..ea351c8 Binary files /dev/null and b/screenshot_02.png differ diff --git a/screenshot_03.png b/screenshot_03.png new file mode 100644 index 0000000..199c2dc Binary files /dev/null and b/screenshot_03.png differ diff --git a/screenshot_04.png b/screenshot_04.png new file mode 100644 index 0000000..d8ab40c Binary files /dev/null and b/screenshot_04.png differ diff --git a/settingtypes.txt b/settingtypes.txt index e79036c..fb5b7ac 100755 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -1,10 +1,17 @@ -# This file contains settings of mobs_napcs that can be changed in -# minetest.conf +## This file contains settings of mobs_npcs that can be changed in +## minetest.conf -# Not implemented yet -mobs.npcs.enable_childrens bool true -mobs.npcs.enable_harmful_revenant bool true -mobs.npcs.revenants enum mobs:zombie,mobs:mummy,mobs:ghost -mobs.npcs.enable_harmful_mummie bool true -mobs.npcs.enable_childrens bool true -mobs.npcs.enable_childrens bool true +## But they are not implemented yet :) + +##-- When some npcs spend some time together, do they make children ? +# mobs.npcs.enable_childrens bool true + +##-- When NPCS are murdered or die in darkness they come back as monsters +##-- Set to false to disable +# mobs.npcs.revenants enum mobs:zombie,mobs:mummy,mobs:ghost + +##-- And if so, are they dangerous ? +##-- If this is set to false, they will just wander around +# mobs.npcs.enable_harmful_revenant bool true + +## Some settings are also affected by settingtypes.txt in mobs_redo