Compare commits

...

5 Commits

Author SHA1 Message Date
laza83 8778635091
Edit init.lua to support more materialials 2019-06-23 18:41:08 +02:00
laza83 acb4b8b9dd
edit not in creative inventory 2019-06-23 18:38:57 +02:00
laza83 3a76ffa1cb
Add bakedclay materials 2019-06-23 18:37:01 +02:00
laza83 25e287fc2e
Add some ethereal materials 2019-06-23 18:35:59 +02:00
laza83 b9562a88a5
add morebloks materials 2019-06-23 18:34:34 +02:00
5 changed files with 331 additions and 0 deletions

View File

@ -1 +1,5 @@
default
bakedclay?
ethereal?
moreblocks?
technic?

View File

@ -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

26
materials_bakedclay.lua Normal file
View File

@ -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

88
materials_ethereal.lua Normal file
View File

@ -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
]]

190
materials_moreblocks.lua Normal file
View File

@ -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