[Mod] Towntest [towntest] - Grow a town in minetest.
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
[Mod] Towntest [towntest] - Grow a town in minetest.
Towntest for Minetest
Grow a town in minetest.
Documentation | GitHub Project
About
This module is open source, so it's distributed freely. If you find it useful then I ask not for your wealth, but simply to spare your time to consider the world we share by watching Earthlings, a multi-award winning film available to watch online for free. A must-see for anyone who wishes to make the world a better place.
Credits
PilzAdam - made the initial NPC entity movement code
VanessaE - contributed buildings
kddekadenz - contributed buildings
ACDC - contributed buildings
Nanuk - contributed buildings
irksomeduck - contributed buildings
License
BSD-3-Clause, Copyright © 2014 Brett O'Donnell
Grow a town in minetest.
Documentation | GitHub Project
About
This module is open source, so it's distributed freely. If you find it useful then I ask not for your wealth, but simply to spare your time to consider the world we share by watching Earthlings, a multi-award winning film available to watch online for free. A must-see for anyone who wishes to make the world a better place.
Credits
PilzAdam - made the initial NPC entity movement code
VanessaE - contributed buildings
kddekadenz - contributed buildings
ACDC - contributed buildings
Nanuk - contributed buildings
irksomeduck - contributed buildings
License
BSD-3-Clause, Copyright © 2014 Brett O'Donnell
Last edited by cornernote on Thu Jan 16, 2014 11:09, edited 1 time in total.
- madchicken13
- Member
- Posts: 741
- Joined: Mon Jun 11, 2012 00:41
- Location: Shelton, WA
- Contact:
Im adding this on my Server does it need any other mods?
Minetest-CC = viewtopic.php?pid=122782
My Minetest Mods = MoreBlocks
My Website: http://www.cddo.us/
My Minetest Mods = MoreBlocks
My Website: http://www.cddo.us/
- GloopMaster
- Member
- Posts: 213
- Joined: Wed Aug 01, 2012 18:03
- Location: http://minetest.net/forum/
- madchicken13
- Member
- Posts: 741
- Joined: Mon Jun 11, 2012 00:41
- Location: Shelton, WA
- Contact:
There is no Crafting recipe for this And it shouldnt
(I Use this on my server
(I Use this on my server
Minetest-CC = viewtopic.php?pid=122782
My Minetest Mods = MoreBlocks
My Website: http://www.cddo.us/
My Minetest Mods = MoreBlocks
My Website: http://www.cddo.us/
- Casimir
- Member
- Posts: 1207
- Joined: Fri Aug 03, 2012 16:59
- GitHub: CasimirKaPazi
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
Simply download and put the whole download into mods/minetestcreeper96 wrote:Awesome mod corner just one problem where do i put it when i have finished downloading
Yes! That was my inspiration. I think coding this in MT/lua will be a LOT easier than coding it in MC/java.tkerwel wrote:first step to Millénaire - NPC village in minetest .... i really love your ideas ... go on like that an i out myself as cornernote fanboy (ups...fanoldy *lol*)
Yes, it needs default. If your *.we buildings require other nodes then you will need them installed too.madchicken13 wrote:Im adding this on my Server does it need any other mods?
Any other dependancies will be listed in depends.txt and on this page.
Yep, you guessed it. The plan is for MT to create fully functional NPC villages. However thats a fair way off.GloopMaster wrote:seems good, however would it be possible to instead create villages on mapgen? I believe this is what you are getting at, however, i'm just giving you a... push in the right direction :3
If you would like to help by contributing buildings, npcs, textures, code, etc then please feel free. Any contributors will be added to the credits (when i put them up) on the home page, forum page and readme. Any active contributors will also be given access to write to the git repo.
It's not a normal default:chest. Its a towntest_chest:chest.alexcraft wrote:i put a chest down i right click on it and it was a normal chest give the command for it or how to craft it
please
Correct, there is no craft, and the plan is to build it on mapgen, not to craft it.madchicken13 wrote:There is no Crafting recipe for this And it shouldnt (I Use this on my server
Thanks Casimir. Yep thats the only way to get it at the moment. (or use creative inventory)Casimir wrote:/giveme towntest_chest:chest and then you have one.
- Neuromancer
- Member
- Posts: 964
- Joined: Tue Jun 12, 2012 22:28
- GitHub: Neuromancer56
Wow.... This is the most impressed I have been by a mod ever. I know Vanessa's houses depended heavilly on other mods like home decor. What did you do to deal with that? Suppose I don't have home decor installed? What if I do install it?
Last edited by Neuromancer on Sat Sep 29, 2012 02:50, edited 1 time in total.
Mods:Immersive Sounds
Phonics
Eden Game Natural Beauty Textures
Try out dropbox and get me free space: https://db.tt/JjjTr7fl
Phonics
Eden Game Natural Beauty Textures
Try out dropbox and get me free space: https://db.tt/JjjTr7fl
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
- Neuromancer
- Member
- Posts: 964
- Joined: Tue Jun 12, 2012 22:28
- GitHub: Neuromancer56
Don't worry about it. I think it's best that you did strip out the non-standard stuff. Mods that depend on too many other mods lead to a to a mod explosion. Simple is good.cornernote wrote:all the non-standard items are stripped out of the *.we files in this pack. feel free to decorate the house yourself after the NPC builds it
if i decide to include *.we files that need mods then i will add them to the depends.txt
Mods:Immersive Sounds
Phonics
Eden Game Natural Beauty Textures
Try out dropbox and get me free space: https://db.tt/JjjTr7fl
Phonics
Eden Game Natural Beauty Textures
Try out dropbox and get me free space: https://db.tt/JjjTr7fl
- Neuromancer
- Member
- Posts: 964
- Joined: Tue Jun 12, 2012 22:28
- GitHub: Neuromancer56
What about for those of us who want Immediate Gratification. Shouldn't there be a super-chest or a prefab chest, that when you place it the building appears almost immediately like from world edit? (also you don't have to stock it with materials, it comes pre-filled with all the materials it needs.) If you want to build epic villages you might not want to wait for your buildings to be built. Ok, I''m getting impatient for my buildings to be built. I want to see them all.
Last edited by Neuromancer on Sat Sep 29, 2012 12:16, edited 1 time in total.
Mods:Immersive Sounds
Phonics
Eden Game Natural Beauty Textures
Try out dropbox and get me free space: https://db.tt/JjjTr7fl
Phonics
Eden Game Natural Beauty Textures
Try out dropbox and get me free space: https://db.tt/JjjTr7fl
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
Deploy Nodes does that, but there is no gui to choose the buildings, its random (small, medium, large)Neuromancer wrote:What about for those of us who want Immediate Gratification. Shouldn't there be a super-chest or a prefab chest, that when you place it the building appears almost immediately like from world edit? (also you don't have to stock it with materials, it comes pre-filled with all the materials it needs.) If you want to build epic villages you might not want to wait for your buildings to be built. Ok, I''m getting impatient for my buildings to be built. I want to see them all.
feel free to take chunks of code from both to make a new mod that lets you choose which building.
- Neuromancer
- Member
- Posts: 964
- Joined: Tue Jun 12, 2012 22:28
- GitHub: Neuromancer56
Nanuk's_chapel has 2 unknown items in it. Any idea what mod I need for it?
Mods:Immersive Sounds
Phonics
Eden Game Natural Beauty Textures
Try out dropbox and get me free space: https://db.tt/JjjTr7fl
Phonics
Eden Game Natural Beauty Textures
Try out dropbox and get me free space: https://db.tt/JjjTr7fl
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
many updated to NPC movement... he now takes items from the chest then moves (instead of instantly teleporting) to within a few nodes of where the block is about to be placed. once he gets there the block is added.
you can kill him, and he will lose his inventory.
be builds from the ground up so it looks more realistic
thanks @PilzAdam for all the help
you can kill him, and he will lose his inventory.
be builds from the ground up so it looks more realistic
thanks @PilzAdam for all the help
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
Thank you for this awesome mod!cornernote wrote:many updated to NPC movement... he now takes items from the chest then moves (instead of instantly teleporting) to within a few nodes of where the block is about to be placed. once he gets there the block is added.
you can kill him, and he will lose his inventory.
be builds from the ground up so it looks more realistic
thanks @PilzAdam for all the help
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
- Neuromancer
- Member
- Posts: 964
- Joined: Tue Jun 12, 2012 22:28
- GitHub: Neuromancer56
It was easy enough to get him to stop checking to see if I had materialDeploy Nodes does that, but there is no gui to choose the buildings, its random (small, medium, large)
feel free to take chunks of code from both to make a new mod that lets you choose which building.
Code: Select all
if true then
--if inv:contains_item("main", v.name) then
-- take from the inv
--inv:remove_item("main", v.name.." 1")
inv:remove_item("needed", v.name.." 1")
I tried the following:
Code: Select all
-- register_abm
minetest.register_abm({
nodenames = {"towntest_chest:chest"},
interval = .01, --was orginally 1
chance = 1,
action = towntest_chest.build,
})
Last edited by Neuromancer on Sun Sep 30, 2012 03:32, edited 1 time in total.
Mods:Immersive Sounds
Phonics
Eden Game Natural Beauty Textures
Try out dropbox and get me free space: https://db.tt/JjjTr7fl
Phonics
Eden Game Natural Beauty Textures
Try out dropbox and get me free space: https://db.tt/JjjTr7fl
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
https://github.com/cornernote/minetest- ... t.lua#L129
change this:
npc:moveto({x=pos.x,y=pos.y+1.5,z=pos.z},2,2,0,function(self,after_param)
to this:
npc:moveto({x=pos.x,y=pos.y+1.5,z=pos.z},10,2,0,function(self,after_param)
the arg after the pos is the speed at which he will move.
change this:
npc:moveto({x=pos.x,y=pos.y+1.5,z=pos.z},2,2,0,function(self,after_param)
to this:
npc:moveto({x=pos.x,y=pos.y+1.5,z=pos.z},10,2,0,function(self,after_param)
the arg after the pos is the speed at which he will move.
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
AMBs cant have a interval < 1.Neuromancer wrote:Code: Select all
-- register_abm minetest.register_abm({ nodenames = {"towntest_chest:chest"}, interval = .01, --was orginally 1 chance = 1, action = towntest_chest.build, })
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
some ideas from IRC:
<PilzAdam> new feature: dont allow him to replace blocks; only if he gets a tool he will try to dig them and bring the result to the chest
<PilzAdam> for the future: you have to create a house where workers live and they go at daytime to work and at the evening you have to give them food
<PilzAdam> hire & fire would be nice
<PilzAdam> "I will build for you for 10 iron"
<PilzAdam> "I will go collect some wood for you for 1 bread"
<PilzAdam> "I will protect you for 1 day for 2 steel ingots"
<cornernote> can object have formspec ?
<PilzAdam> no :-(
<cornernote> i know a hacky way
<cornernote> onpunch, turn him into a node
<cornernote> then abm to turn him back
<cornernote> actually
<cornernote> that will work really well
<cornernote> cos then he stops moving
<cornernote> faces you
<cornernote> and hes a chest
<cornernote> with mapgen, something like 1 or 2 chests per region will be placed
<cornernote> cos each will generate a whole village
<cornernote> will probably have to flatland under it
<cornernote> or the workers can do that
<cornernote> as a player you join a village
<cornernote> and perhaps can rob from other villages
<PilzAdam> new feature: dont allow him to replace blocks; only if he gets a tool he will try to dig them and bring the result to the chest
<PilzAdam> for the future: you have to create a house where workers live and they go at daytime to work and at the evening you have to give them food
<PilzAdam> hire & fire would be nice
<PilzAdam> "I will build for you for 10 iron"
<PilzAdam> "I will go collect some wood for you for 1 bread"
<PilzAdam> "I will protect you for 1 day for 2 steel ingots"
<cornernote> can object have formspec ?
<PilzAdam> no :-(
<cornernote> i know a hacky way
<cornernote> onpunch, turn him into a node
<cornernote> then abm to turn him back
<cornernote> actually
<cornernote> that will work really well
<cornernote> cos then he stops moving
<cornernote> faces you
<cornernote> and hes a chest
<cornernote> with mapgen, something like 1 or 2 chests per region will be placed
<cornernote> cos each will generate a whole village
<cornernote> will probably have to flatland under it
<cornernote> or the workers can do that
<cornernote> as a player you join a village
<cornernote> and perhaps can rob from other villages
Who is online
Users browsing this forum: No registered users and 27 guests