Page 1 of 2

[Mod] Instant Buildings [V 5.0] [instabuild]

Posted: Sun Jun 09, 2013 13:00
by Dan Duncombe
This mod is based heavily on thefamilygrog66's instacabin mod.
The base code for spawning the structures is from worldedit.

It adds several items, which are used to spawn in various types of building.

Protip: as a general rule face along the positive z axis and the buildings should spawn in front of you.

Depends: Default, Worldedit

License: CC-By-SA

Thanks to Evergreen for the V 2.0 Buildings.

The crafting is as follows:
+ Spoiler
Download: See below.
Install: Download and unzip one of the files linked below, rename the folder to "instabuild" if it isn't already, and put the result in your Minetest mods folder and activate it via the menu.

Screenshots: (Better Ones Appreciated)
+ Spoiler

Posted: Sun Jun 09, 2013 13:06
by Evergreen
This is a good idea, seeing as there are mods like this in minecraft. I'll test it later.

Posted: Sun Jun 09, 2013 13:12
by Dan Duncombe
Thankyou, Evergreen!
Evergreen wrote:This is a good idea, seeing as there are mods like this in minecraft. I'll test it later.

Posted: Sun Jun 09, 2013 15:55
by thefamilygrog66
Good stuff, Dan! It's cool how mod ideas evolve, and combine with other ideas to form new mods.

Posted: Sun Jun 09, 2013 16:24
by JBR
Dan Duncombe wrote:This mod is based heavily on thefamilygrog66's instacabin mod. It adds 5 items, which are used to spawn in various types of building.
Depends: Default
License: WTFPL
The crafting is as follows:

Code: Select all

minetest.register_craft({
    output = 'instabuild:small_hut 1',
    recipe = {
        {'default:tree', 'default:wood','default:tree'},
        {'default:tree', 'doors:door_wood','default:tree'},
        {'default:tree', 'default:wood','default:tree'},

    }
})

minetest.register_craft({
    output = 'instabuild:large_hut 1',
    recipe = {
        {'default:tree', 'default:wood','default:tree'},
        {'default:tree', 'instabuild:small_hut','default:tree'},
        {'default:tree', 'default:wood','default:tree'},

    }
})

minetest.register_craft({
    output = 'instabuild:small_house 1',
    recipe = {
        {'default:brick', 'default:brick','default:brick'},
        {'default:brick', 'instabuild:large_hut','default:brick'},
        {'default:brick', 'default:brick','default:brick'},

    }
})

minetest.register_craft({
    output = 'instabuild:large_house 1',
    recipe = {
        {'default:brick', 'default:brick','default:brick'},
        {'default:brick', 'instabuild:small_house','default:brick'},
        {'default:brick', 'default:brick','default:brick'},

    }
})

minetest.register_craft({
    output = 'instabuild:tower 1',
    recipe = {
        {'default:stonebrick', 'default:torch','default:stonebrick'},
        {'default:stonebrick', 'default:stonebrick','default:stonebrick'},
        {'default:stonebrick', 'doors:door_wood','default:stonebrick'},

    }
})
Download at https://www.dropbox.com/s/6rngayumeuidb ... uild.zip?m
I need a small and a large unmodded mansion in .we format please!
Screenshots?

Posted: Sun Jun 09, 2013 16:30
by Dan Duncombe
Where do I upload them? Because ompldr doesn't work any more...
JBR wrote:
Dan Duncombe wrote:This mod is based heavily on thefamilygrog66's instacabin mod. It adds 5 items, which are used to spawn in various types of building.
Depends: Default
License: WTFPL
The crafting is as follows:

Code: Select all

minetest.register_craft({
    output = 'instabuild:small_hut 1',
    recipe = {
        {'default:tree', 'default:wood','default:tree'},
        {'default:tree', 'doors:door_wood','default:tree'},
        {'default:tree', 'default:wood','default:tree'},

    }
})

minetest.register_craft({
    output = 'instabuild:large_hut 1',
    recipe = {
        {'default:tree', 'default:wood','default:tree'},
        {'default:tree', 'instabuild:small_hut','default:tree'},
        {'default:tree', 'default:wood','default:tree'},

    }
})

minetest.register_craft({
    output = 'instabuild:small_house 1',
    recipe = {
        {'default:brick', 'default:brick','default:brick'},
        {'default:brick', 'instabuild:large_hut','default:brick'},
        {'default:brick', 'default:brick','default:brick'},

    }
})

minetest.register_craft({
    output = 'instabuild:large_house 1',
    recipe = {
        {'default:brick', 'default:brick','default:brick'},
        {'default:brick', 'instabuild:small_house','default:brick'},
        {'default:brick', 'default:brick','default:brick'},

    }
})

minetest.register_craft({
    output = 'instabuild:tower 1',
    recipe = {
        {'default:stonebrick', 'default:torch','default:stonebrick'},
        {'default:stonebrick', 'default:stonebrick','default:stonebrick'},
        {'default:stonebrick', 'doors:door_wood','default:stonebrick'},

    }
})
Download at https://www.dropbox.com/s/6rngayumeuidb ... uild.zip?m
I need a small and a large unmodded mansion in .we format please!
Screenshots?

Posted: Sun Jun 09, 2013 16:30
by JBR
Dan Duncombe wrote:Where do I upload them? Because ompldr doesn't work any more...
JBR wrote:
Dan Duncombe wrote:This mod is based heavily on thefamilygrog66's instacabin mod. It adds 5 items, which are used to spawn in various types of building.
Depends: Default
License: WTFPL
The crafting is as follows:

Code: Select all

minetest.register_craft({
    output = 'instabuild:small_hut 1',
    recipe = {
        {'default:tree', 'default:wood','default:tree'},
        {'default:tree', 'doors:door_wood','default:tree'},
        {'default:tree', 'default:wood','default:tree'},

    }
})

minetest.register_craft({
    output = 'instabuild:large_hut 1',
    recipe = {
        {'default:tree', 'default:wood','default:tree'},
        {'default:tree', 'instabuild:small_hut','default:tree'},
        {'default:tree', 'default:wood','default:tree'},

    }
})

minetest.register_craft({
    output = 'instabuild:small_house 1',
    recipe = {
        {'default:brick', 'default:brick','default:brick'},
        {'default:brick', 'instabuild:large_hut','default:brick'},
        {'default:brick', 'default:brick','default:brick'},

    }
})

minetest.register_craft({
    output = 'instabuild:large_house 1',
    recipe = {
        {'default:brick', 'default:brick','default:brick'},
        {'default:brick', 'instabuild:small_house','default:brick'},
        {'default:brick', 'default:brick','default:brick'},

    }
})

minetest.register_craft({
    output = 'instabuild:tower 1',
    recipe = {
        {'default:stonebrick', 'default:torch','default:stonebrick'},
        {'default:stonebrick', 'default:stonebrick','default:stonebrick'},
        {'default:stonebrick', 'doors:door_wood','default:stonebrick'},

    }
})
Download at https://www.dropbox.com/s/6rngayumeuidb ... uild.zip?m
I need a small and a large unmodded mansion in .we format please!
Screenshots?

I use imgur

Posted: Sun Jun 09, 2013 16:59
by Evergreen
Dan Duncombe wrote:Where do I upload them? Because ompldr doesn't work any more...
JBR wrote:
Dan Duncombe wrote:This mod is based heavily on thefamilygrog66's instacabin mod. It adds 5 items, which are used to spawn in various types of building.
Depends: Default
License: WTFPL
The crafting is as follows:

Code: Select all

minetest.register_craft({
    output = 'instabuild:small_hut 1',
    recipe = {
        {'default:tree', 'default:wood','default:tree'},
        {'default:tree', 'doors:door_wood','default:tree'},
        {'default:tree', 'default:wood','default:tree'},

    }
})

minetest.register_craft({
    output = 'instabuild:large_hut 1',
    recipe = {
        {'default:tree', 'default:wood','default:tree'},
        {'default:tree', 'instabuild:small_hut','default:tree'},
        {'default:tree', 'default:wood','default:tree'},

    }
})

minetest.register_craft({
    output = 'instabuild:small_house 1',
    recipe = {
        {'default:brick', 'default:brick','default:brick'},
        {'default:brick', 'instabuild:large_hut','default:brick'},
        {'default:brick', 'default:brick','default:brick'},

    }
})

minetest.register_craft({
    output = 'instabuild:large_house 1',
    recipe = {
        {'default:brick', 'default:brick','default:brick'},
        {'default:brick', 'instabuild:small_house','default:brick'},
        {'default:brick', 'default:brick','default:brick'},

    }
})

minetest.register_craft({
    output = 'instabuild:tower 1',
    recipe = {
        {'default:stonebrick', 'default:torch','default:stonebrick'},
        {'default:stonebrick', 'default:stonebrick','default:stonebrick'},
        {'default:stonebrick', 'doors:door_wood','default:stonebrick'},

    }
})
Download at https://www.dropbox.com/s/6rngayumeuidb ... uild.zip?m
I need a small and a large unmodded mansion in .we format please!
Screenshots?
You know there are other places to upload things then omploader. I use Tinypic.com.

Posted: Sun Jun 09, 2013 17:12
by JBR
Nice screenshots :)

Posted: Sun Jun 09, 2013 17:19
by Dan Duncombe
Sorry that some of the buildings are floating- my computer is kind of messed up right now and I couldn't place properly cause of lag so I ended up clicking trees not the ground.
JBR wrote:Nice screenshots :)

Posted: Sun Jun 09, 2013 17:37
by JBR
Dan Duncombe wrote:Sorry that some of the buildings are floating- my computer is kind of messed up right now and I couldn't place properly cause of lag so I ended up clicking trees not the ground.
JBR wrote:Nice screenshots :)
Lol. Maybe add screenshots of the inside. I haven't actually downloaded this yet because i'm hw atm but I will later.

Posted: Wed Jun 12, 2013 19:27
by Dan Duncombe
Now updated to Version 2.0!

Posted: Thu Jun 13, 2013 00:41
by thefamilygrog66
Hey Dan,

I've shortened the Item Registration section for this:

Code: Select all

--Item Registering

local instabuild_list = {
    { "Small Hut Kit", "small_hut"},
    { "Large Hut Kit", "large_hut"},
    { "Small House Kit", "small_house"},
    { "Large House Kit", "large_house"},
    { "Small Warehouse Kit", "small_warehouse"},
    { "Large Warehouse Kit", "large_warehouse"},
    { "Small Farm Kit", "small_farm"},
    { "Large Farm Kit", "large_farm"},
    { "Short Tower Kit", "short_tower"},
    { "Tall Tower Kit", "tall_tower"},
    
}

for i in ipairs(instabuild_list) do
    local builddesc = instabuild_list[i][1]
    local build = instabuild_list[i][2]

    minetest.register_craftitem("instabuild:"..build, {
        description = builddesc,
        inventory_image = build..".png",
        on_place = function(itemstack, placer, pointed_thing)
            if pointed_thing.above then
                local file = io.open(minetest.get_modpath("instabuild").."/models/"..build..".we")
                local value = file:read("*a")
                file:close()
                local count = instabuild.build(pointed_thing.above, value, minetest.env)
                itemstack:take_item()
            end
            return itemstack
        end,
    })
end
It makes it really easy to add new items too, since you just have to add their description and name in the array at the beginning.

Posted: Mon Jul 15, 2013 01:23
by sneebliahj1
I LOVE this mod! It made building a city so much easier!!!:)

Check it out:
Server name: Mineville

The only problem was that it overlapped some of the other buildings :P

Posted: Mon Jul 15, 2013 01:44
by Chinchow
Something I've always found to be a good addition to a roof is a slab on each corner.

Edit:Also some new building ideas would be small walls and large walls
I'll make some files soon if you like

Posted: Mon Jul 15, 2013 08:34
by Dan Duncombe
Any additions would be great! If you could make some good walls and stuff that would be cool. When you say adding slab to the roof corners I assume you mean on the flat roofed huts?
EDIT: I will also correct the out of place planks on the warehouses (The ones that are at 90* to the rest)
EDIT 2: If there is any way ofmaking itso the building always spawns with the door facing the player, please tell me.
Chinchow wrote:Something I've always found to be a good addition to a roof is a slab on each corner.

Edit:Also some new building ideas would be small walls and large walls
I'll make some files soon if you like

Posted: Mon Jul 15, 2013 11:54
by Dan Duncombe
Hey everyone! I have just released Version 3.0!

New things:

Large house now has a proper window instead of a hole on the top floor.

Crafting recipes now include a mese fragment to stop endless materials being made.

FACTORY! It is a medium sized building with 3 special blocks used in the making of it (The lights, catwalks and skylights).
It is empty but is designed so that you can fill it with Technic Mod machinery. No machinery is included. There is a sort of office that allows you to view your machines at work from inside a small room. I will release screenshots of it soon. You should place it on a relatively large flat unobstructed place for best effect. I took simply ages designing it.

EDIT: Added screenies of factory.

Posted: Mon Jul 15, 2013 12:05
by GassyBritish
The Mod is a great idea, Did you get the idea from the Minecraft Instant Structures mod?

Posted: Mon Jul 15, 2013 12:08
by Dan Duncombe
Yes and no... It is also based of the instacabin mod (see first post).
GassyBritish wrote:The Mod is a great idea, Did you get the idea from the Minecraft Instant Structures mod?

Posted: Mon Jul 15, 2013 14:03
by Dan Duncombe
Here is an example factory utilising mesecons and pipeworks. It smelts items for the operator. I had to slightly modify the office to use the lever.

General View
Image

View from one of the catwalks
Image

The lever to turn it on and off
Image

Posted: Mon Jul 15, 2013 18:05
by Chinchow
Yes I mean slabs on the bottom corners of houses and huts
Btw you mentioned putting the structures in .we format I have searched this format and can't find a description. Can you explain what .we format is?

Posted: Mon Jul 15, 2013 18:13
by Dan Duncombe
A .we format is basically a text file with the extension .we
It contains all of the data required for each node in the file.
It is the format that the WorldEdit mod uses, hence the we letters.
You can open it with any text viewer, like notepad, kate, wordpad, notepad++ etc. The reason it is used here is because I can make the buildings and save them using the Worldedit mod, and just use the outputted file in my mod.

To make life easier, if you make any new buildings for this, name them appropriately, for example large_house, factory, tall_tower. Don't bother making textures for the item, I will do that.
All new buildings, as long as they are sensible, are welcome.

Posted: Mon Jul 15, 2013 19:34
by Dan Duncombe
V4.0 Now out! Will soon update first post.

I have added a more modern house made from stone brick. I have also added a mansion. The mansion is unfurnished and unlit, so you can make it personal inside.
I now consider the items to have tiers. The higher tiers take more mese to make.

Tier 1:
Small hut
Large hut
Small house
Small farm
Large farm
Short tower
Small warehouse

Tier 2:
Large house
Modern house
Tall tower
Factory
Large warehouse

Tier 3:
Mansion

Posted: Mon Jul 15, 2013 19:36
by Jordach
Dan Duncombe wrote:V4.0 Now out! Will soon update first post.

I have added a more modern house made from stone brick. I have also added a mansion. The mansion is unfurnished and unlit, so you can make t personal inside.
I now consider the items to have tiers. The higher tiers take more mese to make.

Tier 1:
Small hut
Large hut
Small house
Small farm
Large farm
Short tower
Small warehouse

Tier 2:
Large house
Modern house
Tall tower
Factory
Large warehouse

Tier 3:
Mansion
Nice update!! This mod must be useful for people who want generic buildings....

Posted: Tue Jul 16, 2013 15:50
by nikminers
Awesome mod, only 1 prob, why are the mansion walls sand? how do I change this?