Page 1 of 1

Can you create an entire building with a mod?

PostPosted: Thu Jul 10, 2014 23:33
by Brockenflabel
Is it possible to craft an entire building?

For example; Lets say you create a new smelter device called a construction yard.
and the output is an entire building that is any size? like 20 X 20 and you place it
like you place a chest or smelter or other single square object on the ground?

Is this possible in Minetest?

Thanks.

Re: Can you create an entire building with a mod?

PostPosted: Thu Jul 10, 2014 23:44
by Evergreen
Brockenflabel wrote:Is it possible to craft an entire building?

For example; Lets say you create a new smelter device called a construction yard.
and the output is an entire building that is any size? like 20 X 20 and you place it
like you place a chest or smelter or other single square object on the ground?

Is this possible in Minetest?

Thanks.

Well, it isn't a function which is available immediately, but I imagine you could code a mod which does something similar.

Re: Can you create an entire building with a mod?

PostPosted: Fri Jul 11, 2014 00:44
by paramat

Re: Can you create an entire building with a mod?

PostPosted: Fri Jul 11, 2014 01:05
by Evergreen

He just means a node which spawns a building when placed, and removes it when dug.

Re: Can you create an entire building with a mod?

PostPosted: Fri Jul 11, 2014 04:18
by paramat
You could define a building spawner node with a ...
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
on_construct = func(pos),

... function that places a schematic around the node.

Re: Can you create an entire building with a mod?

PostPosted: Fri Jul 11, 2014 08:43
by Krock
There are already bridge tools, which build automatically.
Also I've seen a mod which adds small, medium and large houses as nodes - long time ago.
I can't remember the mod which added them.

Re: Can you create an entire building with a mod?

PostPosted: Fri Jul 11, 2014 12:11
by Evergreen
Krock wrote:There are already bridge tools, which build automatically.
Also I've seen a mod which adds small, medium and large houses as nodes - long time ago.
I can't remember the mod which added them.

It was one by Dan. I actually made the buildings for the houses.

Re: Can you create an entire building with a mod?

PostPosted: Fri Jul 11, 2014 14:33
by Sokomine
My apartment mod also does that as a side-effect. My random_buildings mod has a build chest which you can place and where you have to insert the materials required. And there are several other mods out there which place buildings.

Re: Can you create an entire building with a mod?

PostPosted: Sat Jul 12, 2014 00:52
by Brockenflabel
Thanks for the replies.
:)

Re: Can you create an entire building with a mod?

PostPosted: Sat Jul 12, 2014 06:59
by celeron55
paramat wrote:You could define a building spawner node with a ...
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
on_construct = func(pos),

... function that places a schematic around the node.


Do not use on_construct for these kinds of purposes. Use after_place_node. on_construct is something that the engine will call no matter what when the node is set in the world; you do not want that. The fact that it isn't called when eg. a schematic is placed is broken non-standard behavior due to optimization.