Compare commits
5 Commits
484b370975
...
8778635091
Author | SHA1 | Date |
---|---|---|
|
8778635091 | |
|
acb4b8b9dd | |
|
3a76ffa1cb | |
|
25e287fc2e | |
|
b9562a88a5 |
|
@ -1 +1,5 @@
|
|||
default
|
||||
bakedclay?
|
||||
ethereal?
|
||||
moreblocks?
|
||||
technic?
|
||||
|
|
23
init.lua
23
init.lua
|
@ -1,4 +1,27 @@
|
|||
mymillwork = {}
|
||||
|
||||
print("Loading mymillwork...")
|
||||
|
||||
dofile(minetest.get_modpath("mymillwork").."/machines.lua")
|
||||
dofile(minetest.get_modpath("mymillwork").."/nodes.lua")
|
||||
dofile(minetest.get_modpath("mymillwork").."/materials.lua")
|
||||
|
||||
if minetest.get_modpath("bakedclay") then
|
||||
print("[mymillwork] Bakedclay detected")
|
||||
dofile(minetest.get_modpath("mymillwork").."/materials_bakedclay.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("ethereal") then
|
||||
print("[mymillwork] Ethereal detected")
|
||||
dofile(minetest.get_modpath("mymillwork").."/materials_ethereal.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
print("[mymillwork] Moreblocks detected")
|
||||
dofile(minetest.get_modpath("mymillwork").."/materials_moreblocks.lua")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("technic_worldgen") then
|
||||
print("[mymillwork] Technic Worldgen detected")
|
||||
dofile(minetest.get_modpath("mymillwork").."/materials_technic.lua")
|
||||
end
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
local clay = {
|
||||
{"white", "White"},
|
||||
{"grey", "Grey"},
|
||||
{"black", "Black"},
|
||||
{"red", "Red"},
|
||||
{"yellow", "Yellow"},
|
||||
{"green", "Green"},
|
||||
{"cyan", "Cyan"},
|
||||
{"blue", "Blue"},
|
||||
{"magenta", "Magenta"},
|
||||
{"orange", "Orange"},
|
||||
{"violet", "Violet"},
|
||||
{"brown", "Brown"},
|
||||
{"pink", "Pink"},
|
||||
{"dark_grey", "Dark Grey"},
|
||||
{"dark_green", "Dark Green"},
|
||||
}
|
||||
|
||||
for _,c in ipairs(clay) do
|
||||
mymillwork.register("bakedclay:" .. c[1],
|
||||
"bakedclay_" .. c[1],
|
||||
c[2] .. " Clay",
|
||||
"baked_clay_" .. c[1] .. ".png",
|
||||
{crumbly = 3, not_in_creative_inventory = 1}
|
||||
)
|
||||
end
|
|
@ -0,0 +1,88 @@
|
|||
local nici = 1
|
||||
|
||||
if not minetest.get_modpath("bakedclay") then
|
||||
|
||||
--baked_clay_gray
|
||||
mymillwork.register("bakedclay:grey",
|
||||
"baked_clay_grey",
|
||||
"Grey Baked Clay",
|
||||
"baked_clay_grey.png",
|
||||
{cracky = 3, not_in_creative_inventory = nici}
|
||||
)
|
||||
|
||||
--baked_clay_orange
|
||||
mymillwork.register("bakedclay:orange",
|
||||
"baked_clay_orange",
|
||||
"Orange Baked Clay",
|
||||
"baked_clay_orange.png",
|
||||
{cracky = 3, not_in_creative_inventory = nici}
|
||||
)
|
||||
|
||||
--baked_clay_red
|
||||
mymillwork.register("bakedclay:red",
|
||||
"baked_clay_red",
|
||||
"Red Baked Clay",
|
||||
"baked_clay_red.png",
|
||||
{cracky = 3, not_in_creative_inventory = nici}
|
||||
)
|
||||
|
||||
end
|
||||
|
||||
--[[
|
||||
local nodes = {
|
||||
--banana_trunk
|
||||
--banana_trunk_top
|
||||
--banana_wood
|
||||
|
||||
--crystal_block
|
||||
|
||||
--ethereal_frost_tree
|
||||
--ethereal_frost_tree_top
|
||||
--frost_wood
|
||||
|
||||
--glostone
|
||||
|
||||
--ethereal_sakura_trunk
|
||||
--ethereal_sakura_trunk_top
|
||||
--ethereal_sakura_trunk_wood
|
||||
|
||||
--moretrees_birch_trunk
|
||||
--moretrees_birch_trunk_top
|
||||
--moretrees_birch_wood
|
||||
|
||||
--moretrees_palm_trunk
|
||||
--moretrees_palm_trunk_top
|
||||
--moretrees_palm_wood
|
||||
|
||||
--mushroom_block
|
||||
--mushroom_pore
|
||||
--mushroom_trunk
|
||||
--mushroom_trunk_top
|
||||
|
||||
--redwood_trunk
|
||||
--redwood_trunk_top
|
||||
--redwood_wood
|
||||
|
||||
--scorched_tree
|
||||
--scorched_tree_top
|
||||
|
||||
--willow_trunk
|
||||
--willow_trunk_top
|
||||
--willow_wood
|
||||
|
||||
--yellow_tree
|
||||
--yellow_tree_top
|
||||
--yellow_wood
|
||||
}
|
||||
|
||||
for name, def in pairs(nodes) do
|
||||
|
||||
mymillwork.register("ethereal:"..name,
|
||||
name,
|
||||
def.description,
|
||||
name..".png",
|
||||
def.groups
|
||||
)
|
||||
|
||||
end
|
||||
]]
|
|
@ -0,0 +1,190 @@
|
|||
local nici = 1
|
||||
|
||||
local nodes = {
|
||||
|
||||
--moreblocks_cactus_brick
|
||||
["cactus_brick"] = {
|
||||
description = ("Cactus Brick"),
|
||||
groups = {cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_circle_stone_bricks
|
||||
["circle_stone_bricks"] = {
|
||||
description = ("Circle Stone Bricks"),
|
||||
groups = {stone = 1, cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_clean_glass
|
||||
--moreblocks_clean_glass_detail
|
||||
--moreblocks_coal_glass_stairsplus
|
||||
|
||||
--moreblocks_coal_stone
|
||||
["coal_stone"] = {
|
||||
description = ("Coal Stone"),
|
||||
groups = {stone = 1, cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_coal_stone_bricks
|
||||
["coal_stone_bricks"] = {
|
||||
description = ("Coal Stone Bricks"),
|
||||
groups = {stone = 1, cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_cobble_compressed
|
||||
["cobble_compressed"] = {
|
||||
description = ("Cobble Compressed"),
|
||||
groups = {cracky = 1, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_copperpatina
|
||||
["copperpatina"] = {
|
||||
description = ("Copper Patina"),
|
||||
groups = {cracky = 1, level = 2, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_dirt_compressed
|
||||
["dirt_compressed"] = {
|
||||
description = ("Dirt Compressed"),
|
||||
groups = {crumbly = 2, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_grey_bricks
|
||||
["grey_bricks"] = {
|
||||
description = ("Grey Bricks"),
|
||||
groups = {cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_iron_stone
|
||||
["iron_stone"] = {
|
||||
description = ("Iron Stone"),
|
||||
groups = {stone = 1, cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_iron_stone_bricks
|
||||
["iron_stone_bricks"] = {
|
||||
description = ("Iron Stone Bricks"),
|
||||
groups = {stone = 1, cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_plankstone
|
||||
["plankstone"] = {
|
||||
description = ("Plankstone"),
|
||||
groups = {cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_split_stone_tile
|
||||
--moreblocks_split_stone_tile_top
|
||||
["split_stone_tile_top"] = {
|
||||
description = ("Split Stone Tile"),
|
||||
groups = {stone = 1, cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_stone_tile
|
||||
["stone_tile"] = {
|
||||
description = ("Stone Tile"),
|
||||
groups = {stone = 1, cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_checker_stone_tile
|
||||
["checker_stone_tile"] = {
|
||||
description = ("Checker Stone Tile"),
|
||||
groups = {stone = 1, cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_tar
|
||||
["tar"] = {
|
||||
description = ("Tar"),
|
||||
groups = {cracky = 2, tar_block = 1, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
local nodes_checker = {
|
||||
|
||||
--moreblocks_cactus_checker
|
||||
["cactus_checker"] = {
|
||||
description = ("Cactus Checker"),
|
||||
groups = {stone = 1, cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_coal_checker
|
||||
["coal_checker"] = {
|
||||
description = ("Coal Checker"),
|
||||
groups = {stone = 1, cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
|
||||
--moreblocks_iron_checker
|
||||
["iron_checker"] = {
|
||||
description = ("Iron Checker"),
|
||||
groups = {stone = 1, cracky = 3, not_in_creative_inventory = nici},
|
||||
},
|
||||
}
|
||||
|
||||
local nodes_all_faces = {
|
||||
|
||||
--moreblocks_all_faces_tree
|
||||
["all_faces_tree"] = {
|
||||
description = "All-faces Tree",
|
||||
tiles = {"default_tree_top.png"},
|
||||
},
|
||||
|
||||
--moreblocks_all_faces_jungle_tree
|
||||
["all_faces_jungle_tree"] = {
|
||||
description = "All-faces Jungle Tree",
|
||||
tiles = {"default_jungletree_top.png"},
|
||||
},
|
||||
|
||||
--moreblocks_all_faces_pine_tree
|
||||
["all_faces_pine_tree"] = {
|
||||
description = "All-faces Pine Tree",
|
||||
tiles = {"default_pine_tree_top.png"},
|
||||
},
|
||||
|
||||
--moreblocks_all_faces_acacia_tree
|
||||
["all_faces_acacia_tree"] = {
|
||||
description = "All-faces Acacia Tree",
|
||||
tiles = {"default_acacia_tree_top.png"},
|
||||
},
|
||||
|
||||
--moreblocks_all_faces_aspen_tree
|
||||
["all_faces_aspen_tree"] = {
|
||||
description = "All-faces Aspen Tree",
|
||||
tiles = {"default_aspen_tree_top.png"},
|
||||
},
|
||||
|
||||
}
|
||||
|
||||
|
||||
for name, def in pairs(nodes) do
|
||||
|
||||
mymillwork.register("moreblocks:"..name,
|
||||
"morebloks_"..name,
|
||||
def.description,
|
||||
"moreblocks_"..name..".png",
|
||||
def.groups
|
||||
)
|
||||
|
||||
end
|
||||
|
||||
for name, def in pairs(nodes_checker) do
|
||||
|
||||
mymillwork.register("moreblocks:"..name,
|
||||
"morebloks_"..name,
|
||||
def.description,
|
||||
"default_stone.png^moreblocks_"..name..".png",
|
||||
def.groups
|
||||
)
|
||||
|
||||
end
|
||||
|
||||
for name, def in pairs(nodes_all_faces) do
|
||||
|
||||
mymillwork.register("moreblocks:"..name,
|
||||
"morebloks_"..name,
|
||||
def.description,
|
||||
def.tiles[1],
|
||||
{tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2,
|
||||
not_in_creative_inventory = nici}
|
||||
)
|
||||
|
||||
end
|
Loading…
Reference in New Issue