my personal preferences added

master
R.M. HildigerR V 2014-01-11 23:38:06 -08:00
parent 7e167bfaf3
commit 8f6b6e4e09
75 changed files with 1538 additions and 0 deletions

View File

@ -0,0 +1,46 @@
--Chains: --make place like rope and change textures
minetest.register_node(":chains:chain", {
description = "Chain",
walkable = false,
climbable = true,
sunlight_propagates = true,
paramtype = "light",
drops = "",
inventory_image = "Chain_inv.png",
tile_images = { "Chain.png" },
drawtype = "plantlike",
on_place = place_rope,
after_dig_node = function(pos, oldnode, oldmetadata, digger)
local num = 0
local below = {x=pos.x,y=pos.y -1,z=pos.z}
while minetest.env:get_node(below).name == "chains:chain" do
minetest.env:remove_node(below)
below.y = below.y -1
num = num + 1
end
if num ~= 0 then
digger:get_inventory():add_item("main", "chains:chain "..num)
end
end,
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = "chains:chain 2",
recipe = {
{'default:steel_ingot'},
{'default:steel_ingot'},
{'default:steel_ingot'},
}
})
minetest.register_craft({ --[Comment out lines 56-62]
output = 'chains:chandelier',
recipe = {
{'default:torch', 'chains:chain', 'default:torch'},
{'default:torch', 'chains:chain', 'default:torch'},
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
}
})

11
my_preference/depends.txt Normal file
View File

@ -0,0 +1,11 @@
default
moreblocks
gates_wooden
homedecor
junglegrass
ropes
moreores
desert_uses
chains
teleporters
wool

31
my_preference/fuels.lua Normal file
View File

@ -0,0 +1,31 @@
--- Wooden Tool Fuels:---
minetest.register_craft({
type = "fuel",
recipe = "default:stick",
burntime = 5,
})
minetest.register_craft({
type = "fuel",
recipe = "default:sword_wood",
burntime = 10,
})
minetest.register_craft({
type = "fuel",
recipe = "default:pick_wood",
burntime = 10,
})
minetest.register_craft({
type = "fuel",
recipe = "default:shovel_wood",
burntime = 10,
})
minetest.register_craft({
type = "fuel",
recipe = "default:axe_wood",
burntime = 10,
})

View File

@ -0,0 +1,24 @@
---gates_wooden: [Comment out original Crafts section]
minetest.register_craft({
output = '"gates_wooden:classic" 2',
recipe = {
{"default:wood", "default:stick", "default:wood"},
{"default:wood", "default:stick", "default:wood"},
{"default:wood", "default:stick", "default:wood"},
},
})
minetest.register_craft({
output = '"gates_wooden:long" 1',
recipe = {
{"default:stick", "default:wood", "default:stick"},
{"default:stick", "default:wood", "default:stick"},
},
})
minetest.register_craft({
output = '"gates_wooden:short" 1',
recipe = {
{"default:stick", "default:wood", "default:stick"},
},
})

View File

@ -0,0 +1,225 @@
-----------------------------------homedecor-----------------------------------
--crafts.lua:
-- minetest.register_craftitem(":unifieddyes:white_paint", {
-- description = "Bucket of white paint",
-- inventory_image = "homedecor_white_paint.png",
-- groups = {dye=1, basecolor_white=1, excolor_white=1, unicolor_white=1}
-- })
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:titanium_dioxide 6",
recipe = {"default:stone"}
})--[Original @ Lines:20-24]
--additional alternatives:[DEPEND ON MOREBLOCKS]
minetest.register_craft({
type = "cooking",
output = "unifieddyes:titanium_dioxide 10",
recipe = "moreblocks:ironglass",
})
minetest.register_craft({
type = "cooking",
output = "unifieddyes:titanium_dioxide 20",
recipe = "moreblocks:ironstone",
})
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:white_paint",
recipe = {
"unifieddyes:titanium_dioxide",
"bucket:bucket_water",
"default:dry_shrub",
-- "default:dry_shrub",
},
})--[Original @ Lines:41-50]
minetest.register_craft( {
type = "shapeless",
output = "unifieddyes:white_paint",
recipe = {
"unifieddyes:titanium_dioxide",
"bucket:bucket_water",
"default:leaves",
"default:leaves",
-- "default:leaves",
},
})--[Original @ Lines:52-62]
--[I Comment out Original @ Lines:133-140 for now]
-- Curtains --[Original @ Lines:1003-1024]
local curtaincolors = {
"red",
"green",
"blue",
"white",
"pink",
"violet"
}
local morecurtaincolors = {
"grey",
"black",
"yellow",
"orange",
}
for c in ipairs(curtaincolors) do
local color = curtaincolors[c]
minetest.register_craft( {
output = "homedecor:curtain_"..color.." 3",
recipe = {
{ "wool:"..color, "", ""},
{ "wool:"..color, "", ""},
{ "wool:"..color, "", ""},
},
})
for j in ipairs(curtaincolors) do
local base = curtaincolors[j]
if color ~= base then
minetest.register_craft({
type = "shapeless",
output = "homedecor:curtain_"..base,
recipe = {
"homedecor:curtain_"..color,
"group:basecolor_"..base,
},
})
end -- if
end -- for j
for k in ipairs(morecurtaincolors) do
local base = morecurtaincolors[k]
minetest.register_craft({
type = "shapeless",
output = "homedecor:curtain_"..base,
recipe = {
"homedecor:curtain_"..color,
"group:basecolor_"..base,
},
})
end -- for k
end -- for c
for c in ipairs(morecurtaincolors) do
local color = morecurtaincolors[c]
minetest.register_node(":homedecor:curtain_"..color, {
description = "Curtains ("..color..")",
tiles = { "homedecor_curtain_"..color..".png" },
inventory_image = "homedecor_curtain_"..color..".png",
wield_image = "homedecor_curtain_"..color..".png",
drawtype = 'signlike',
sunlight_propagates = false,
paramtype = "light",
paramtype2 = "facedir",
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
paramtype2 = 'wallmounted',
selection_box = {
type = "wallmounted",
--wall_side = = <default>
},
})
minetest.register_craft( {
output = "homedecor:curtain_"..color.." 3",
recipe = {
{ "wool:"..color, "", ""},
{ "wool:"..color, "", ""},
{ "wool:"..color, "", ""},
},
})
for j in ipairs(morecurtaincolors) do
local base = morecurtaincolors[j]
if color ~= base then
minetest.register_craft({
type = "shapeless",
output = "homedecor:curtain_"..base,
recipe = {
"homedecor:curtain_"..color,
"group:basecolor_"..base,
},
})
end -- if
end -- for j
for k in ipairs(curtaincolors) do
local base = curtaincolors[k]
minetest.register_craft({
type = "shapeless",
output = "homedecor:curtain_"..base,
recipe = {
"homedecor:curtain_"..color,
"group:basecolor_"..base,
},
})
end -- for k
end -- for c
--TO USE SINK:
-- drop bucket onto sink node
-- pick up bucket and puch sink at same time
--if you aim to hit the bucket above the sink so that you punch a
--node other than the sink you will recieve it empty
--if you punch the sink as you pick up the bucket you will recieve a
--bucket of water.
minetest.register_node(':homedecor:kitchen_cabinet_with_sink', {
description = "Kitchen Cabinet with sink",
tiles = { 'homedecor_kitchen_cabinet_sinktop.png',
'homedecor_kitchen_cabinet_bottom.png',
'homedecor_kitchen_cabinet_sides.png',
'homedecor_kitchen_cabinet_sides.png',
'homedecor_kitchen_cabinet_sides.png',
'homedecor_kitchen_cabinet_front.png'},
sunlight_propagates = false,
stack_max = 1,
paramtype = "light",
paramtype2 = "facedir",
walkable = true,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
meta:set_string("formspec",
"size[8,7]"..
"list[current_name;main;0,0;8,2;]"..
"list[current_player;main;0,3;8,4;]")
meta:set_string("infotext", "Under-sink cabinet")
local inv = meta:get_inventory()
inv:set_size("main", 16)
end,
can_dig = function(pos,player)
local meta = minetest.env:get_meta(pos);
local inv = meta:get_inventory()
return inv:is_empty("main")
end,
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
minetest.log("action", player:get_player_name()..
" moves stuff in under-sink cabinet at "..minetest.pos_to_string(pos))
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
minetest.log("action", player:get_player_name()..
" moves stuff to under-sink cabinet at "..minetest.pos_to_string(pos))
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
minetest.log("action", player:get_player_name()..
" takes stuff from under-sink cabinet at "..minetest.pos_to_string(pos))
end,
on_punch = function (pos, node, puncher)
local tool = puncher:get_wielded_item()
if tool then if tool:get_name() == "bucket:bucket_empty" then
puncher:get_inventory():remove_item("main", "bucket:bucket_empty")
puncher:get_inventory():add_item("main", "bucket:bucket_water")
end end
end
})

59
my_preference/init.lua Normal file
View File

@ -0,0 +1,59 @@
-----------------My Recipe and Node Redefinitions and Additions-----------------
---Stone and Cobblestone Switch---
dofile(minetest.get_modpath("my_preference").."/stoned.lua")
-- Stick from dry shrub
minetest.register_craft({
output = "default:stick 1",
recipe = {
{"default:dry_shrub"},
}
})
-- Stick from sapling
minetest.register_craft({
output = "default:stick 2",
recipe = {
{"default:sapling"},
}
})
---gates_wooden: [Comment out original Crafts section]
dofile(minetest.get_modpath("my_preference").."/gates_wooden_changes.lua")
---homedecor:
dofile(minetest.get_modpath("my_preference").."/homedecor_changes.lua")
---moreblocks:
dofile(minetest.get_modpath("my_preference").."/moreblocks_changes.lua")
---moreores:
--copper tools and rebalance tool characteristics [also includes desert_uses stone tools]
dofile(minetest.get_modpath("my_preference").."/tool_balance.lua")
---plantlife:
dofile(minetest.get_modpath("my_preference").."/plantlife_changes.lua")
---Dye Recipes (instead of Unified Dyes)
dofile(minetest.get_modpath("my_preference").."/my_dyes.lua")
--Chains: --make place like rope and change textures
dofile(minetest.get_modpath("my_preference").."/chains_changes.lua")
--Teleporters:[comment out lines 172-186]
dofile(minetest.get_modpath("my_preference").."/teleporters_changes.lua")
----Snow:
dofile(minetest.get_modpath("my_preference").."/snow_changes.lua")
---wool:
dofile(minetest.get_modpath("my_preference").."/wool_recipes.lua")
----[Modify Stairs to produce 8 instead of 4]----
---TEXTURE PACK ANIMATIONS
dofile(minetest.get_modpath("my_preference").."/texture_pack_additions.lua")

View File

@ -0,0 +1,153 @@
---moreblocks:
minetest.register_craft({
output = "moreblocks:emptybookshelf 1",
recipe = {
{"group:wood", "group:wood", "group:wood"},
{"", "", ""},
{"group:wood", "group:wood", "group:wood"},
}
})--[Comment Out Lines:377-383]
minetest.register_craft({
type = "shapeless",
output = 'default:bookshelf',
recipe = {
"default:book", "default:book", "default:book", "moreblocks:emptybookshelf",
}
})
--Fix but unchange some recipes [from Lines:479-595]
minetest.register_craft({
output = "moreblocks:cleanglass 1",
type = "shapeless",
recipe = {"moreblocks:sweeper", "default:glass"},
})
minetest.register_craft({
output = "moreblocks:glowglass 1",
type = "shapeless",
recipe = {"default:torch", "default:glass"},
})
minetest.register_craft({
output = ":moreblocks:superglowglass 1",
type = "shapeless",
recipe = {"default:torch", "default:torch", "default:glass"},
})
--Increase ouput of some recipes [from Lines:385-391 & 519-531]
minetest.register_craft({
-- output = "moreblocks:ironstonebrick 1"
output = "moreblocks:ironstonebrick 2",
recipe = {
{"default:steel_ingot"},
{"moreblocks:stonebrick"},
}
})
minetest.register_craft({
-- output = "moreblocks:ironstone 1",
output = "moreblocks:ironstone 2",
type = "shapeless",
recipe = {"lump_of_iron", "stone"},
})
minetest.register_craft({
-- output = "moreblocks:cactusbrick 1",
output = "moreblocks:cactusbrick 2",
recipe = {
{"cactus"},
{"brick"},
}
})
--Decrease output of some recipes [from Lines:84-107]
minetest.register_craft({
-- output = "default:sign_wall 4",
output = "default:sign_wall 2",
recipe = {
{"default:wood", "default:wood", "default:wood"},
{"default:wood", "default:wood", "default:wood"},
{"", "default:stick", ""},
}
})
minetest.register_craft({
-- output = "default:ladder 3",
output = "default:ladder 2",
recipe = {
{"default:stick", "", "default:stick"},
{"default:stick", "default:stick", "default:stick"},
{"default:stick", "", "default:stick"},
}
})
minetest.register_craft({
-- output = "default:paper 3",
output = "default:paper 2",
recipe = {
{"default:papyrus", "default:papyrus", "default:papyrus"},
}
})
--Comment out some recipes:
--Lines:266-272 --already handled by default
--Lines:282-288,298-304 --waste of mese
minetest.register_craft({
output = "moreblocks:circlestonebrick 4",
recipe = {
{"moreblocks:stonesquare", "moreblocks:stonesquare"},
{"moreblocks:stonesquare", "moreblocks:stonesquare"},
}
})--[Comment out Lines:336-343] -- interferes with prefered furnace recipe
--Adjust some recipes to conform with preference
minetest.register_craft({
output = "moreblocks:stonebrick 4",
recipe = {
{"cobble", "cobble"},
{"cobble", "cobble"},
}
})--[Replaces Lines:328-334]
minetest.register_craft({
output = "moreblocks:stonesquare 4",
recipe = {
{"stone", "stone"},
{"stone", "stone"},
}
})--[Replaces Lines:362-368]
--Redefine Stone-like nodes to be in group:stone
minetest.register_node(":moreblocks:stonebrick", {
description = "Stone Bricks",
tiles = {"moreblocks_stonebrick.png"},
is_ground_content = true,
groups = {cracky=3, stone=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node(":moreblocks:circlestonebrick", {
description = "Circle Stone Bricks",
tiles = {"moreblocks_circlestonebrick.png"},
is_ground_content = true,
groups = {cracky=3, stone=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node(":moreblocks:stonesquare", {
description = "Stonesquare",
tiles = {"moreblocks_stonesquare.png"},
is_ground_content = true,
groups = {cracky=3, stone=1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node(":moreblocks:splitstonesquare", {
description = "Split Stonesquare",
tiles = {"moreblocks_splitstonesquare_top.png", "moreblocks_splitstonesquare.png"},
is_ground_content = true,
groups = {cracky=3, stone=1},
sounds = default.node_sound_stone_defaults(),
})

193
my_preference/my_dyes.lua Normal file
View File

@ -0,0 +1,193 @@
---Dye Recipes (instead of Unified Dyes)
-- TEMPLATE:
-- minetest.register_craft({
-- type = 'shapeless',
-- output = "dye: ",
-- recipe = {""},
-- })
--White:
minetest.register_craft({
type = 'shapeless',
output = "dye:white",
recipe = {"unifieddyes:titanium_dioxide"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:white 4",
recipe = {"flowers:flower_dandelion_white"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:white 4",
recipe = {"flowers:flower_dandelion_white_pot"},
})
--Black:
minetest.register_craft({
type = 'shapeless',
output = "dye:black 4",
recipe = {"default:coal_lump"},
})
--Red:
minetest.register_craft({
type = 'shapeless',
output = "dye:red 2",
recipe = {"default:apple"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:red 4",
recipe = {"flowers:flower_rose"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:red 6",
recipe = {"flowers:flower_rose_pot"},
})
--Orange:
minetest.register_craft({
type = 'shapeless',
output = "dye:orange 4",
recipe = {"flowers:flower_tulip"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:orange 6",
recipe = {"flowers:flower_tulip_pot"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:orange 8",
recipe = {"moreores:copper"},
})
--Yellow:
minetest.register_craft({
type = 'shapeless',
output = "dye:yellow 4",
recipe = {"flowers:flower_dandelion_yellow"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:yellow 6",
recipe = {"flowers:flower_dandelion_yellow_pot"},
})
--Blue:
minetest.register_craft({
type = 'shapeless',
output = "dye:blue 4",
recipe = {"flowers:flower_geranium"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:blue 6",
recipe = {"flowers:flower_geranium_pot"},
})
--Violet:
minetest.register_craft({
type = 'shapeless',
output = "dye:violet 4",
recipe = {"flowers:flower_viola"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:violet 6",
recipe = {"flowers:flower_viola_pot"},
})
--Green
minetest.register_craft({
type = 'shapeless',
output = "dye:green 6",
recipe = {"default:cactus"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 4",
recipe = {"default:leaves"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 6",
recipe = {"snow:needles"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 1",
recipe = {"junglegrass:shortest"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 2",
recipe = {"junglegrass:short"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 3",
recipe = {"junglegrass:medium"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 4",
recipe = {"default:junglegrass"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 1",
recipe = {"poisonivy:seedling"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 2",
recipe = {"poisonivy:sproutling"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 3",
recipe = {"poisonivy:climbing"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 4",
recipe = {"default:dirt_with_grass"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 2",
recipe = {"flowers:flower_waterlily"},
})
minetest.register_craft({
type = 'shapeless',
output = "dye:green 3",
recipe = {"flowers:flower_seaweed"},
})

View File

@ -0,0 +1,26 @@
---plantlife:
-- Include crafting mossycobble as in moreblocks for all sizes of junglegrass [assume moreblocks handles default]
minetest.register_craft({
output = "default:mossycobble 1",
recipe = {
{"junglegrass:shortest"},
{"default:cobble"},
}
})
minetest.register_craft({
output = "default:mossycobble 1",
recipe = {
{"junglegrass:short"},
{"default:cobble"},
}
})
minetest.register_craft({
output = "default:mossycobble 1",
recipe = {
{"junglegrass:medium"},
{"default:cobble"},
}
})
--TODO:include recipes for turf too

View File

@ -0,0 +1,19 @@
minetest.register_craft({
output = "homedecor:plastic_base 4",
recipe = {{
"snow:needles",
"snow:needles",
"snow:needles",
"snow:needles",
"snow:needles",
"snow:needles",
}},
})
minetest.register_craft({
output = "default:stick 2",
recipe = {
{"snow:sapling_pine"},
},
})

92
my_preference/stoned.lua Normal file
View File

@ -0,0 +1,92 @@
---------------------------Stone and Cobblestone Switch--------------------------
---defaults:
minetest.register_node(":default:stone", {
description = "Stone",
tiles = {"default_stone.png"},
is_ground_content = true,
groups = {cracky=3, stone=1},
drop = 'default:stone',
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
-- Stone --> Cobble
minetest.register_craft({
type = "cooking",
output = "default:cobble",
recipe = "default:stone",
})
---desert_uses:
-- Make desert stone drop desert stone
minetest.register_node(":default:desert_stone", {
description = "Desert Stone",
tiles = {"default_desert_stone.png"},
is_ground_content = true,
groups = {cracky=3},
drop = 'default:desert_stone', --"desert_uses:desert_cobble",
sounds = default.node_sound_stone_defaults(),
})
-- Desert Stone -> Desert Cobble
minetest.register_craft({
type = "cooking",
output = "desert_uses:desert_cobble",
recipe = "default:desert_stone",
})
-- Include stone crafts using non cobblestone
minetest.register_craft({
output = "desert_uses:pick_desert_stone",
recipe = {
{"default:desert_stone", "default:desert_stone", "default:desert_stone"},
{"", "default:stick", ""},
{"", "default:stick", ""},
}
})
minetest.register_craft({
output = "desert_uses:shovel_desert_stone",
recipe = {
{"default:desert_stone"},
{"default:stick"},
{"default:stick"},
}
})
minetest.register_craft({
output = "desert_uses:axe_desert_stone",
recipe = {
{"default:desert_stone", "default:desert_stone"},
{"default:desert_stone", "default:stick"},
{"", "default:stick"},
}
})
minetest.register_craft({
output = "desert_uses:axe_desert_stone",
recipe = {
{"default:desert_stone", "default:desert_stone"},
{"default:stick", "default:desert_stone"},
{"default:stick", ""},
}
})
minetest.register_craft({
output = "desert_uses:sword_desert_stone",
recipe = {
{"default:desert_stone"},
{"default:desert_stone"},
{"default:stick"},
}
})
minetest.register_craft({
output = "desert_uses:desert_furnace",
recipe = {
{"default:desert_stone", "default:desert_stone", "default:desert_stone"},
{"default:desert_stone", "", "default:desert_stone"},
{"default:desert_stone", "default:desert_stone", "default:desert_stone"},
}
})

View File

@ -0,0 +1,16 @@
--Teleporters:[comment out lines 172-186]
minetest.register_craft({
output = '"teleporters:spiral" 4',
recipe = {
{"moreores:gold_ingot","default:mese_crystal","moreores:gold_ingot"},
{"default:mese_crystal","","default:mese_crystal"},
{"moreores:gold_ingot","default:mese_crystal","moreores:gold_ingot"}
}
})
minetest.register_craft({
output = '"teleporters:base" 2',
type = "shapeless",
recipe = {"default:steel_ingot","default:steel_ingot","default:mese_crystal","default:mese_crystal","bucket:bucket_lava"},
replacements = {{"bucket:bucket_lava","bucket:bucket"}},
})

View File

@ -0,0 +1,89 @@
minetest.register_node(":default:furnace_active", {
description = "Furnace",
tiles = {"default_furnace_top.png", "default_furnace_bottom.png", "default_furnace_side.png",
"default_furnace_side.png", "default_furnace_side.png",
{name="default_furnace_front_active_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=8.0}}},
paramtype2 = "facedir",
light_source = 8,
drop = "default:furnace",
groups = {cracky=2, not_in_creative_inventory=1},
legacy_facedir_simple = true,
sounds = default.node_sound_stone_defaults(),
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
meta:set_string("formspec", default.furnace_inactive_formspec)
meta:set_string("infotext", "Furnace");
local inv = meta:get_inventory()
inv:set_size("fuel", 1)
inv:set_size("src", 1)
inv:set_size("dst", 4)
end,
can_dig = function(pos,player)
local meta = minetest.env:get_meta(pos);
local inv = meta:get_inventory()
if not inv:is_empty("fuel") then
return false
elseif not inv:is_empty("dst") then
return false
elseif not inv:is_empty("src") then
return false
end
return true
end,
})
minetest.register_craftitem(":default:steel_ingot", {
description = "Steel Ingot",
inventory_image = "default_steel_ingot.png",
wield_image = "default_steel_ingot_wield.png",
})
minetest.register_craftitem(":default:clay_brick", {
description = "Clay Brick",
inventory_image = "default_clay_brick.png",
wield_image = "default_clay_brick_wield.png",
})
minetest.register_craftitem(":moreores:copper_ingot", {
description = "Copper Ingot",
inventory_image = "moreores_copper_ingot.png",
wield_image = "moreores_copper_ingot_wield.png",
on_place_on_ground = minetest.craftitem_place_item
})
minetest.register_craftitem(":moreores:tin_ingot", {
description = "Tin Ingot",
inventory_image = "moreores_tin_ingot.png",
wield_image = "moreores_tin_ingot_wield.png",
on_place_on_ground = minetest.craftitem_place_item
})
minetest.register_craftitem(":moreores:bronze_ingot", {
description = "bronze Ingot",
inventory_image = "moreores_bronze_ingot.png",
wield_image = "moreores_bronze_ingot_wield.png",
on_place_on_ground = minetest.craftitem_place_item
})
minetest.register_craftitem(":moreores:silver_ingot", {
description = "Silver Ingot",
inventory_image = "moreores_silver_ingot.png",
wield_image = "moreores_silver_ingot_wield.png",
on_place_on_ground = minetest.craftitem_place_item
})
minetest.register_craftitem(":moreores:gold_ingot", {
description = "Gold Ingot",
inventory_image = "moreores_gold_ingot.png",
wield_image = "moreores_gold_ingot_wield.png",
on_place_on_ground = minetest.craftitem_place_item
})
minetest.register_craftitem(":moreores:mithril_ingot", {
description = "Mithril Ingot",
inventory_image = "moreores_mithril_ingot.png",
wield_image = "moreores_mithril_ingot_wield.png",
on_place_on_ground = minetest.craftitem_place_item
})
minetest.register_craftitem(":homedecor:brass_ingot", {
description = "Brass Ingot",
inventory_image = "homedecor_brass_ingot.png",
wield_image = "homedecor_brass_ingot_wield.png",
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 599 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

View File

@ -0,0 +1,431 @@
--Default Redefinitions:
minetest.register_tool(":default:pick_wood", {
description = "Wooden Pickaxe",
inventory_image = "default_tool_woodpick.png",
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level=0,
groupcaps={
cracky = {times={[2]=2.00, [3]=1.20}, uses=10, maxlevel=1},
fleshy = {times={[2]=1.00, [3]=0.70}, uses=15, maxlevel=1}
}
},
})
minetest.register_tool(":default:pick_stone", {
description = "Stone Pickaxe",
inventory_image = "default_tool_stonepick.png",
tool_capabilities = {
full_punch_interval = 1.3,
max_drop_level=0,
groupcaps={
cracky = {times={[1]=4.00, [2]=1.80, [3]=1.10}, uses=20, maxlevel=1},
fleshy = {times={[2]=0.95, [3]=0.60}, uses=25, maxlevel=1}
}
},
})
minetest.register_tool(":default:pick_steel", {
description = "Steel Pickaxe",
inventory_image = "default_tool_steelpick.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
cracky = {times={[1]=3.50, [2]=1.50, [3]=0.95}, uses=30, maxlevel=2},
fleshy = {times={[2]=0.65, [3]=0.45}, uses=35, maxlevel=1}
}
},
})
minetest.register_tool(":default:shovel_wood", {
description = "Wooden Shovel",
inventory_image = "default_tool_woodshovel.png",
wield_image = "default_tool_woodshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level=0,
groupcaps={
crumbly = {times={[1]=3.00, [2]=0.80, [3]=0.60}, uses=10, maxlevel=1},
fleshy = {times={[2]=0.95, [3]=0.70}, uses=25, maxlevel=1}
}
},
})
minetest.register_tool(":default:shovel_stone", {
description = "Stone Shovel",
inventory_image = "default_tool_stoneshovel.png",
wield_image = "default_tool_stoneshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.4,
max_drop_level=0,
groupcaps={
crumbly = {times={[1]=2.50, [2]=0.75, [3]=0.60}, uses=20, maxlevel=1},
fleshy = {times={[2]=0.95, [3]=0.60}, uses=40, maxlevel=1}
}
},
})
minetest.register_tool(":default:shovel_steel", {
description = "Steel Shovel",
inventory_image = "default_tool_steelshovel.png",
wield_image = "default_tool_steelshovel.png^[transformR90",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
crumbly = {times={[1]=1.50, [2]=0.70, [3]=0.50}, uses=30, maxlevel=2},
fleshy = {times={[2]=0.50, [3]=0.40}, uses=50, maxlevel=1}
}
},
})
minetest.register_tool(":default:axe_wood", {
description = "Wooden Axe",
inventory_image = "default_tool_woodaxe.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=0,
groupcaps={
choppy = {times={[2]=1.50, [3]=1.00}, uses=10, maxlevel=1},
snappy={times={[2]=1.00, [3]=0.50}, uses=10, maxlevel=1},
fleshy = {times={[2]=0.70, [3]=0.50}, uses=10, maxlevel=1}
}
},
})
minetest.register_tool(":default:axe_stone", {
description = "Stone Axe",
inventory_image = "default_tool_stoneaxe.png",
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level=0,
groupcaps={
choppy={times={[1]=3.00, [2]=1.40, [3]=0.90}, uses=20, maxlevel=1},
snappy={times={[2]=0.90, [3]=0.40}, uses=20, maxlevel=1},
fleshy={times={[2]=0.60, [3]=0.40}, uses=15, maxlevel=1}
}
},
})
minetest.register_tool(":default:axe_steel", {
description = "Steel Axe",
inventory_image = "default_tool_steelaxe.png",
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level=1,
groupcaps={
choppy={times={[1]=2.50, [2]=1.25, [3]=0.70}, uses=30, maxlevel=2},
snappy={times={[2]=0.80, [3]=0.35}, uses=35, maxlevel=1},
fleshy={times={[2]=0.50, [3]=0.35}, uses=30, maxlevel=1}
}
},
})
minetest.register_tool(":default:sword_wood", {
description = "Wooden Sword",
inventory_image = "default_tool_woodsword.png",
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level=0,
groupcaps={
fleshy={times={[2]=1.10, [3]=0.60}, uses=10, maxlevel=1},
snappy={times={[2]=0.90, [3]=0.45}, uses=15, maxlevel=1},
choppy={times={[3]=1.00}, uses=20, maxlevel=0}
}
}
})
minetest.register_tool(":default:sword_stone", {
description = "Stone Sword",
inventory_image = "default_tool_stonesword.png",
tool_capabilities = {
full_punch_interval = 1.1,
max_drop_level=0,
groupcaps={
fleshy={times={[2]=1.00, [3]=0.50}, uses=15, maxlevel=1},
snappy={times={[2]=0.80, [3]=0.35}, uses=20, maxlevel=1},
choppy={times={[3]=0.90}, uses=25, maxlevel=0}
}
}
})
minetest.register_tool(":default:sword_steel", {
description = "Steel Sword",
inventory_image = "default_tool_steelsword.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level=1,
groupcaps={
fleshy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=10, maxlevel=2},
snappy={times={[2]=0.70, [3]=0.30}, uses=40, maxlevel=1},
choppy={times={[3]=0.70}, uses=40, maxlevel=0}
}
}
})
-- Desertuses Redefinitions:
minetest.register_tool(":desert_uses:pick_desert_stone", {
description = "Desert Stone Pickaxe",
inventory_image = "desert_uses_tool_desert_stonepick.png",
tool_capabilities = {
full_punch_interval = 1.3,
max_drop_level=0,
groupcaps={
cracky={times={[1]=4.00, [2]=1.80, [3]=1.10}, uses=20, maxlevel=1},
fleshy={times={[2]=0.95, [3]=0.60}, uses=25, maxlevel=1},
}
},
})
minetest.register_tool(":desert_uses:shovel_desert_stone", {
description = "Desert Stone Shovel",
inventory_image = "desert_uses_tool_desert_stoneshovel.png",
tool_capabilities = {
full_punch_interval = 1.4,
max_drop_level=0,
groupcaps={
crumbly={times={[1]=2.50, [2]=0.75, [3]=0.60}, uses=20, maxlevel=1},
fleshy={times={[2]=0.95, [3]=0.60}, uses=40, maxlevel=1},
}
},
})
minetest.register_tool(":desert_uses:axe_desert_stone", {
description = "Desert Stone Axe",
inventory_image = "desert_uses_tool_desert_stoneaxe.png",
tool_capabilities = {
full_punch_interval = 1.2,
max_drop_level=0,
groupcaps={
choppy={times={[1]=3.05, [2]=1.45, [3]=0.90}, uses=20, maxlevel=1},
snappy={times={[2]=0.95, [3]=0.40}, uses=20, maxlevel=1},
fleshy={times={[2]=0.60, [3]=0.40}, uses=15, maxlevel=1},
}
}
})
minetest.register_tool(":desert_uses:sword_desert_stone", {
description = "Desert Stone Sword",
inventory_image = "desert_uses_tool_desert_stonesword.png",
tool_capabilities = {
full_punch_interval = 1.1,
max_drop_level=0,
groupcaps={
fleshy={times={[2]=0.95, [3]=0.50}, uses=15, maxlevel=1},
snappy={times={[2]=0.85, [3]=0.35}, uses=20, maxlevel=1},
choppy={times={[3]=0.90}, uses=25, maxlevel=0}
}
}
})
--[[
Adapted From:
More Ores by Calinou with the help of MarkTraceur, GloopMaster and Kotolegokot
Licensed under GPLv3 or later for code and zlib/libpng for textures, see: http://www.gnu.org/licenses/gpl-3.0.html
--]]
local modname = "moreores"
local oredefs = {
copper = {
tools = {
pick = {
cracky={times={[1]=3.75, [2]=1.60, [3]=1.00}, uses=25, maxlevel=1},
fleshy={times={[2]=0.70, [3]=0.50}, uses=30, maxlevel=1}
},
shovel = {
crumbly={times={[1]=2.00, [2]=0.70, [3]=0.55}, uses=25, maxlevel=2},
fleshy={times={[2]=0.75, [3]=0.50}, uses=45, maxlevel=1}
},
axe = {
choppy={times={[1]=2.75, [2]=1.30, [3]=0.80}, uses=25, maxlevel=1},
snappy={times={[2]=0.85, [3]=0.35}, uses=25, maxlevel=1},
fleshy={times={[2]=0.50, [3]=0.35}, uses=20, maxlevel=1}
},
sword = {
fleshy={times={[1]=3.00, [2]=0.80, [3]=0.40}, uses=20, maxlevel=2},
snappy={times={[2]=0.75, [3]=0.30}, uses=25, maxlevel=1},
choppy={times={[3]=0.80}, uses=30, maxlevel=0}
}
},
punchint = 0.8
},
bronze = {
tools = {
pick = {
cracky={times={[1]=3.75, [2]=1.60, [3]=1.00}, uses=30, maxlevel=1},
fleshy={times={[2]=0.70, [3]=0.50}, uses=35, maxlevel=1}
},
shovel = {
crumbly={times={[1]=2.00, [2]=0.70, [3]=0.55}, uses=30, maxlevel=2},
fleshy={times={[2]=0.75, [3]=0.50}, uses=50, maxlevel=1}
},
axe = {
choppy={times={[1]=2.75, [2]=1.30, [3]=0.80}, uses=30, maxlevel=1},
snappy={times={[2]=0.85, [3]=0.35}, uses=30, maxlevel=1},
fleshy={times={[2]=0.50, [3]=0.35}, uses=25, maxlevel=1}
},
sword = {
fleshy={times={[1]=3.00, [2]=0.80, [3]=0.40}, uses=25, maxlevel=2},
snappy={times={[2]=0.75, [3]=0.30}, uses=30, maxlevel=1},
choppy={times={[3]=0.80}, uses=35, maxlevel=0}
}
},
punchint = 0.8
},
silver = {
tools = {
pick = {
cracky={times={[1]=3.25, [2]=1.40, [3]=0.85}, uses=30, maxlevel=2},
fleshy={times={[2]=0.60, [3]=0.40}, uses=35, maxlevel=1}
},
shovel = {
crumbly={times={[1]=1.00, [2]=0.50, [3]=0.35}, uses=30, maxlevel=3},
fleshy={times={[1]=3.00, [2]=0.45, [3]=0.30}, uses=55, maxlevel=1}
},
axe = {
choppy={times={[1]=2.25, [2]=1.20, [3]=0.60}, uses=30, maxlevel=2},
snappy={times={[2]=0.75, [3]=0.30}, uses=25, maxlevel=1},
fleshy={times={[2]=0.40, [3]=0.30}, uses=25, maxlevel=1}
},
sword = {
fleshy={times={[1]=1.75, [2]=0.75, [3]=0.35}, uses=30, maxlevel=2},
snappy={times={[1]=3.00, [2]=0.65, [3]=0.25}, uses=25, maxlevel=1},
choppy={times={[3]=0.60}, uses=30, maxlevel=0}
}
},
punchint = 0.8
},
gold = {
tools = {
pick = {
cracky={times={[1]=3.25, [2]=1.30, [3]=0.80}, uses=25, maxlevel=2},
fleshy={times={[1]=4.00, [2]=0.60, [3]=0.40}, uses=30, maxlevel=1}
},
shovel = {
crumbly={times={[1]=1.25, [2]=0.60, [3]=0.40}, uses=30, maxlevel=2},
fleshy={times={[1]=3.00, [2]=0.45, [3]=0.30}, uses=50, maxlevel=1}
},
axe = {
choppy={times={[1]=2.00, [2]=1.00, [3]=0.50}, uses=40, maxlevel=3},
snappy={times={[1]=3.00, [2]=0.70, [3]=0.30}, uses=30, maxlevel=1},
fleshy={times={[1]=3.00, [2]=0.40, [3]=0.30}, uses=30, maxlevel=1}
},
sword = {
fleshy={times={[1]=1.70, [2]=0.70, [3]=0.30}, uses=30, maxlevel=2},
snappy={times={[1]=2.50, [2]=0.65, [3]=0.25}, uses=30, maxlevel=1},
choppy={times={[2]=2.75, [3]=0.60}, uses=35, maxlevel=1}
}
},
punchint = 0.7
},
mithril = {
tools = {
pick = {
cracky={times={[1]=3.00, [2]=1.20, [3]=0.75}, uses=40, maxlevel=2},
fleshy={times={[1]=3.80, [2]=0.55, [3]=0.35}, uses=45, maxlevel=1}
},
shovel = {
crumbly={times={[1]=1.00, [2]=0.60, [3]=0.35}, uses=40, maxlevel=2},
fleshy={times={[1]=2.75, [2]=0.40, [3]=0.30}, uses=60, maxlevel=1}
},
axe = {
choppy={times={[1]=2.00, [2]=1.00, [3]=0.50}, uses=45, maxlevel=2},
snappy={times={[1]=2.50, [2]=0.70, [3]=0.30}, uses=35, maxlevel=2},
fleshy={times={[1]=2.50, [2]=0.40, [3]=0.30}, uses=30, maxlevel=1}
},
sword = {
fleshy={times={[1]=1.70, [2]=0.65, [3]=0.30}, uses=40, maxlevel=3},
snappy={times={[1]=2.00, [2]=0.65, [3]=0.25}, uses=35, maxlevel=2},
choppy={times={[1]=3.00, [2]=2.75, [3]=0.60}, uses=40, maxlevel=1}
}
},
punchint = 0.6
}
}
for mineral_name,oredef in pairs(oredefs) do
local firstlet = string.upper(string.sub(mineral_name, 1, 1))
local upcase_name = firstlet .. string.sub(mineral_name, 2)
local img_base = modname .. "_" .. mineral_name
local toolimg_base = modname .. "_tool_"..mineral_name
local tool_base = ":" .. modname .. ":"
local tool_post = "_" .. mineral_name
local item_base = tool_base .. mineral_name
for toolname, tooldef in pairs(oredef.tools) do
local tflet = string.upper(string.sub(toolname, 0, 1))
local upcase_toolname = tflet..string.sub(toolname, 2)
local tdef = {
description = upcase_name .. " " .. upcase_toolname,
inventory_image = toolimg_base .. toolname .. ".png",
tool_capabilities = {
max_drop_level=3,
groupcaps=tooldef
}
}
if toolname == "sword" then
tdef.full_punch_interval = oredef.punchint
elseif toolname == "pick" then
tdef.description = upcase_name .. " Pickaxe"
tdef.full_punch_interval = oredef.punchint + 0.2
elseif toolname == "shovel" then
tdef.full_punch_interval = oredef.punchint + 0.2
else -- toolname == "axe"
tdef.full_punch_interval = oredef.punchint + 0.1
end
local fulltoolname = tool_base .. toolname .. tool_post
minetest.register_tool(fulltoolname, tdef)
end
end
-- -- --Titanium:[[[[[[[REMOVED]]]]]]]
-- --
-- -- minetest.register_tool(":titanium:sword", {
-- -- description = "Titanium Sword",
-- -- inventory_image = "titanium_sword.png",
-- -- tool_capabilities = {
-- -- full_punch_interval = 0.8,
-- -- max_drop_level=1,
-- -- groupcaps={
-- -- fleshy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=35, maxlevel=2},
-- -- snappy={times={[2]=0.70, [3]=0.30}, uses=40, maxlevel=1},
-- -- choppy={times={[3]=0.70}, uses=40, maxlevel=0}
-- -- }
-- -- }
-- -- })
-- --
-- -- minetest.register_tool(":titanium:axe", {
-- -- description = "Titanium Axe",
-- -- inventory_image = "titanium_axe.png",
-- -- tool_capabilities = {
-- -- max_drop_level=1,
-- -- groupcaps={
-- -- choppy={times={[1]=2.50, [2]=1.20, [3]=0.70}, uses=35, maxlevel=2},
-- -- snappy={times={[2]=0.80, [3]=0.50}, uses=40, maxlevel=1},
-- -- fleshy={times={[2]=0.50, [3]=0.35}, uses=35, maxlevel=1}
-- -- }
-- -- },
-- -- })
-- --
-- -- minetest.register_tool(":titanium:shovel", {
-- -- description = "Titanium Shovel",
-- -- inventory_image = "titanium_shovel.png",
-- -- tool_capabilities = {
-- -- max_drop_level=1,
-- -- groupcaps={
-- -- crumbly={times={[1]=1.50, [2]=0.70, [3]=0.50}, uses=35, maxlevel=3},
-- -- fleshy={times={[2]=0.50, [3]=0.40}, uses=55, maxlevel=1}
-- -- }
-- -- },
-- -- })
-- --
-- -- minetest.register_tool(":titanium:pick", {
-- -- description = "Titanium Pickaxe",
-- -- inventory_image = "titanium_pick.png",
-- -- tool_capabilities = {
-- -- full_punch_interval = 1.0,
-- -- max_drop_level=3,
-- -- groupcaps={
-- -- cracky={times={[1]=3.50, [2]=1.50, [3]=0.90}, uses=35, maxlevel=3},
-- -- fleshy={times={[2]=0.65, [3]=0.45}, uses=40, maxlevel=1}
-- -- }
-- -- },
-- -- })

View File

@ -0,0 +1,123 @@
--Redefine Wool Craft Quantities [from 16 to 1]:
local wool = {}
wool.dyes = {
{"grey", "basecolor_grey"},
{"black", "basecolor_black"},
{"red", "basecolor_red"},
{"yellow", "basecolor_yellow"},
{"green", "basecolor_green"},
{"cyan", "basecolor_cyan"},
{"blue", "basecolor_blue"},
{"magenta", "basecolor_magenta"},
{"orange", "excolor_orange"},
{"violet", "excolor_violet"},
{"brown", "unicolor_dark_orange"},
{"pink", "unicolor_light_red"},
{"dark_grey", "unicolor_darkgrey"},
{"dark_green", "unicolor_dark_green"},
}
for _, col in ipairs(wool.dyes) do
local name = col[1]
local craft_color_group = col[2]
--Crafting from dye and white wool
minetest.register_craft({
type = "shapeless",
output = 'wool:'..name..' 1',
recipe = {'group:dye,'..craft_color_group, 'wool:white'},
})
--White dye always reverts wool to white
minetest.register_craft({
type = "shapeless",
output = 'wool:white 1',
recipe = {'group:dye,basecolor_white', 'wool:'..name},
})
end
----Skip Making Dye: [OPT]
-- minetest.register_craft({
-- output = 'wool:red 1',
-- recipe = {
-- {'default:apple', 'wool:white'},
-- }
-- })
-- minetest.register_craft({
-- output = 'wool:green 1',
-- recipe = {
-- {'default:leaves', 'wool:white'},
-- }
-- })
--Other Dyes
minetest.register_craft({
output = 'wool:black 1',
recipe = {
{'default:coal_lump', 'wool:grey'},
}
})
minetest.register_craft({
output = 'wool:grey 1',
recipe = {
{'default:coal_lump', 'wool:white'},
}
})
minetest.register_craft({
output = 'wool:brown 1',
recipe = {
{'default:dirt', 'wool:white'},
}
})
minetest.register_craft({
output = 'wool:cyan 1',
recipe = {
{'default:jungletree', 'wool:white'},
}
})
--Wool Combinations:
minetest.register_craft({
output = 'wool:magenta 2',
recipe = {
{'wool:cyan', 'wool:red'},
}
})
minetest.register_craft({
output = 'wool:blue 2',
recipe = {
{'wool:cyan', 'wool:magenta'},
}
})
minetest.register_craft({
output = 'wool:orange 2',
recipe = {
{'wool:yellow', 'wool:red'},
}
})
--Wool From Cotton ---TODO: MAKE COTTON RECIPES TO PARALLEL WOOL
minetest.register_craft( {
output = "wool:white",
recipe = {
{ "flowers:cotton", "flowers:cotton"},
{ "flowers:cotton", "flowers:cotton"}
},
})
--MSC Dye recipes (Not necisarily for wool-crafts)
minetest.register_craft({
type = "shapeless",
output = "default:desert_sand",
recipe = {'group:dye,basecolor_orange','default:sand'},
})