Add files via upload
parent
7c583dbe03
commit
5cab20e54e
82
huts.lua
82
huts.lua
|
@ -9,13 +9,75 @@
|
|||
|
||||
-- HUTS
|
||||
|
||||
minetest.register_node("mt_buildings:wall", {
|
||||
description = "housewall",
|
||||
tiles = {"default_wood.png"}, --"default_glass.png", "default_glass_detail.png"},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
-- cannot be digged, does not appear in creative inventory
|
||||
groups = {not_in_creative_inventory = 0},
|
||||
-- if a player tries to place a node here, this one will be replaced by it
|
||||
buildable_to = true,
|
||||
-- water shall not wash it away
|
||||
floodable = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
drawtype = "nodebox",
|
||||
-- small enough so that it disappears inside the house wall object
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0.5, -0.5, 0.5, -0.5, 0.5, 0.5-1/32}, --128},
|
||||
},
|
||||
},
|
||||
-- the collision box is slightly larger than the nodebox because the
|
||||
-- collision box is what this node exists for
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0.5, -0.5, 0.5, -0.5, 0.5, 0.5-1/16},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- corner node for the larger-than-one-node-house-tents
|
||||
minetest.register_node("mt_buildings:wall_edge", {
|
||||
description = "housewall",
|
||||
tiles = {"default_wood.png"}, --"default_glass.png", "default_glass_detail.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
groups = {not_in_creative_inventory = 0},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
|
||||
buildable_to = true,
|
||||
floodable = false,
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0.5, -0.5, 0.5, -0.5, 0.5, 0.5-1/32}, --128},
|
||||
{0.5, -0.5, 0.5, 0.5-1/32, 0.5,-0.5}, --128},
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{0.5, -0.5, 0.5, -0.5, 0.5, 0.5-1/16},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("mt_buildings:hut01", {
|
||||
description = "Gun Shop",
|
||||
drawtype = "mesh",
|
||||
mesh = "hut01.obj",
|
||||
tiles = {"GunsFREE.jpg"},
|
||||
inventory_image = "GunsFREE.jpg",
|
||||
wield_image = "GunsFREE.jpg",
|
||||
use_texture_alpha = true,
|
||||
tiles = {"GunsFREE.png"},
|
||||
inventory_image = "GunsFREE.png",
|
||||
wield_image = "GunsFREE.png",
|
||||
buildable_to = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
|
@ -29,9 +91,10 @@ minetest.register_node("mt_buildings:hut02", {
|
|||
description = "Medic",
|
||||
drawtype = "mesh",
|
||||
mesh = "hut01.obj",
|
||||
tiles = {"MedicFREE.jpg"},
|
||||
inventory_image = "MedicFREE.jpg",
|
||||
wield_image = "MedicFREE.jpg",
|
||||
use_texture_alpha = true,
|
||||
tiles = {"MedicFREE.png"},
|
||||
inventory_image = "MedicFREE.png",
|
||||
wield_image = "MedicFREE.png",
|
||||
buildable_to = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
|
@ -46,9 +109,10 @@ minetest.register_node("mt_buildings:hut03", {
|
|||
description = "Old Shop",
|
||||
drawtype = "mesh",
|
||||
mesh = "hut01.obj",
|
||||
tiles = {"ShopFREE.jpg"},
|
||||
inventory_image = "ShopFREE.jpg",
|
||||
wield_image = "ShopFREE.jpg",
|
||||
use_texture_alpha = true,
|
||||
tiles = {"ShopFREE.png"},
|
||||
inventory_image = "ShopFREE.png",
|
||||
wield_image = "ShopFREE.png",
|
||||
buildable_to = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
|
|
4
init.lua
4
init.lua
|
@ -7,5 +7,9 @@ local S, NS = dofile(MP.."/intllib.lua")
|
|||
|
||||
-- MT_Buildings
|
||||
|
||||
|
||||
dofile(path .. "/streetlight.lua") -- Steamed_Punk
|
||||
dofile(path .. "/huts.lua") -- Steamed_Punk
|
||||
dofile(path .. "/well.lua") -- Steamed_Punk
|
||||
dofile(path .. "/organic.lua") -- Steamed_Punk
|
||||
print (S("[MOD] Huts are loaded"))
|
||||
|
|
|
@ -0,0 +1,68 @@
|
|||
-- Licenses of media (3D Meshes and textures)
|
||||
-- ---------------------------------------
|
||||
|
||||
-- Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
|
||||
|
||||
-- Copyright (C) 2019 - 2020 Steamed_Punk steamedpunk.mt at gmail.com
|
||||
|
||||
-- NODES
|
||||
|
||||
|
||||
-- RED
|
||||
|
||||
minetest.register_node("mt_buildings:mushroom_red", {
|
||||
description = "Red Mushroom",
|
||||
drawtype = "mesh",
|
||||
mesh = "mushroom.obj",
|
||||
tiles = {"RedMushroom.png"},
|
||||
buildable_to = true,
|
||||
groups = {mushroom = 1, food_mushroom = 1, snappy = 3, attached_node = 1, flammable = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
on_use = minetest.item_eat(1),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.1, -0.5, -0.1, 0.1, -0.2, 0.1},
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.1, -0.5, -0.1, 0.1, -0.2, 0.1},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
--BROWN
|
||||
|
||||
minetest.register_node("mt_buildings:mushroom_brown", {
|
||||
description = "Brown Mushroom",
|
||||
drawtype = "mesh",
|
||||
mesh = "mushroom.obj",
|
||||
tiles = {"BrownMushroom.png"},
|
||||
buildable_to = true,
|
||||
groups = {mushroom = 1, food_mushroom = 1, snappy = 3, attached_node = 1, flammable = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
on_use = minetest.item_eat(1),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.1, -0.5, -0.1, 0.1, -0.2, 0.1},
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.1, -0.5, -0.1, 0.1, -0.2, 0.1},
|
||||
},
|
||||
},
|
||||
})
|
|
@ -0,0 +1,75 @@
|
|||
-- Licenses of media (3D Meshes and textures)
|
||||
-- ---------------------------------------
|
||||
|
||||
-- Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
|
||||
|
||||
-- Copyright (C) 2019 - 2020 Steamed_Punk steamedpunk.mt at gmail.com
|
||||
|
||||
-- NODES
|
||||
|
||||
-- well
|
||||
|
||||
minetest.register_node("mt_buildings:streetlight", {
|
||||
description = "Street Light",
|
||||
drawtype = "mesh",
|
||||
mesh = "streetlight.obj",
|
||||
use_texture_alpha = true,
|
||||
tiles = {"Lamp.png"},
|
||||
buildable_to = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
on_place = minetest.rotate_node,
|
||||
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.4, 1.5, -0.4, 0.4, 2.5, 0.4},
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.4, -0.5, -0.4, 0.4, 2.5, 0.4},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
-- WELL_CRAFT
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mt_buildings:hut01",
|
||||
recipe = {
|
||||
{'', 'group:tree', ''},
|
||||
{'','group:tree', ''},
|
||||
{'', 'group:tree', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mt_buildings:hut02",
|
||||
recipe = {
|
||||
{'', '', ''},
|
||||
{'group:tree','group:tree', 'group:tree'},
|
||||
{'', '', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mt_buildings:hut03",
|
||||
recipe = {
|
||||
{'', '', 'group:tree'},
|
||||
{'','group:tree', ''},
|
||||
{'group:tree', '', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mt_buildings:hut04",
|
||||
recipe = {
|
||||
{'group:tree', '', ''},
|
||||
{'','group:tree', ''},
|
||||
{'', '', 'group:tree'},
|
||||
}
|
||||
})
|
|
@ -0,0 +1,49 @@
|
|||
-- Licenses of media (3D Meshes and textures)
|
||||
-- ---------------------------------------
|
||||
|
||||
-- Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
|
||||
|
||||
-- Copyright (C) 2019 - 2020 Steamed_Punk steamedpunk.mt at gmail.com
|
||||
|
||||
-- NODES
|
||||
|
||||
-- well
|
||||
|
||||
minetest.register_node("mt_buildings:well", {
|
||||
description = "Crooked Well",
|
||||
drawtype = "mesh",
|
||||
mesh = "well.obj",
|
||||
use_texture_alpha = true,
|
||||
tiles = {"Well01.jpg"},
|
||||
buildable_to = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
groups = {choppy=2, oddly_breakable_by_hand=2, flammable=3},
|
||||
on_place = minetest.rotate_node,
|
||||
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
collision_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.9, -2.5, -0.9, 0.9, -1, 0.9},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
-- WELL_CRAFT
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mt_buildings:hut01",
|
||||
recipe = {
|
||||
{'group:tree', 'group:tree', 'group:tree'},
|
||||
{'group:tree','group:tree', 'group:tree'},
|
||||
{'', 'group:tree', ''},
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue