Compare commits
5 Commits
3753ecc3e8
...
41824d9983
Author | SHA1 | Date |
---|---|---|
HildigerR Vergaray | 41824d9983 | |
Hildigerr Vergaray | c646a79be6 | |
Hildigerr Vergaray | 3def96a938 | |
Hildigerr Vergaray | 8eb887cdfa | |
Hildigerr Vergaray | 3aec6725d5 |
|
@ -1 +1,7 @@
|
|||
These mods were made for Minetest 0.4.4 which is not the latest version.
|
||||
This was at one time a collection of all my Minetest mods. I was using version 0.4.4 then.
|
||||
|
||||
This repository is archivial. The mods have been exported into thier own repos:
|
||||
|
||||
- The original [fishing](https://github.com/hildigerr/fishing) mod!
|
||||
- Various [overriding preferences](https://github.com/hildigerr/minetest_overrides) of my own, as a mod.
|
||||
- my_mobs remains for archivial purposes, but has also been encorporated into [my fork of mobs](https://github.com/hildigerr/mobs).
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
Originally Posted at: https://forum.minetest.net/viewtopic.php?id=4375
|
||||
A newer mod, based on this one, is here: https://github.com/Mossmanikin/fishing
|
||||
|
||||
Includes:
|
||||
a fish (can be cooked or eaten raw),
|
||||
fishing poles,
|
||||
worm (bait),
|
||||
sushi
|
||||
To get worms for bait you must dig in dirt (without grass) by hand. There is a default 30% chance that you will find one. This can be configured in init.lua, as well as the chance of catching a fish. Or, you can use "/giveme fishing:bait_worm".
|
||||
To catch a fish, use a baited fishing pole on a water node.
|
||||
Depends:
|
||||
To craft a fishing pole: (or you can use "/giveme fishing:pole")
|
||||
ropes or moreblocks or farming
|
||||
I suggest using my modified version of ropes. Get it here.
|
||||
This also modifies moreblocks:rope to be used as ropes:rope -- which is really handy.
|
||||
To craft sushi: (or you can use "/giveme fishing:sushi")
|
||||
plantlife
|
||||
|
||||
Code:WTFPL
|
||||
Textures:
|
||||
<http://www.planetminecraft.com/texture_pack/wolfhound/>
|
||||
|
||||
TODO:
|
||||
item wear,
|
||||
automatic re-baiting option,
|
||||
different types of fish/sushi,
|
||||
sounds,
|
||||
nets and traps
|
139
fishing/init.lua
|
@ -1,139 +0,0 @@
|
|||
--todo: item wear, automatic re-baiting option, different types of fish/sushi, add sound
|
||||
|
||||
local FISH_CHANCE = 15
|
||||
local WORM_CHANCE = 30
|
||||
|
||||
minetest.register_craftitem("fishing:fish_raw", {
|
||||
description = "Raw Fish",
|
||||
groups = {},
|
||||
inventory_image = "fishing_fish.png",
|
||||
on_use = minetest.item_eat(2),
|
||||
})
|
||||
|
||||
minetest.register_craftitem("fishing:fish", {
|
||||
description = "Cooked Fish",
|
||||
groups = {},
|
||||
inventory_image = "fishing_fish_cooked.png",
|
||||
on_use = minetest.item_eat(4),
|
||||
})
|
||||
|
||||
minetest.register_craftitem("fishing:sushi", {
|
||||
description = "Sushi (Hoso Maki)",
|
||||
groups = {},
|
||||
inventory_image = "fishing_sushi.png",
|
||||
on_use = minetest.item_eat(8),
|
||||
})
|
||||
|
||||
minetest.register_craftitem("fishing:bait_worm", {
|
||||
description = "Worms",
|
||||
groups = { fishing_bait=1 },
|
||||
inventory_image = "fishing_worm.png",
|
||||
-- wield_image = "fishing_worm_wield.png",
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craftitem("fishing:pole", {
|
||||
description = "Fishing Pole",
|
||||
groups = {},
|
||||
inventory_image = "fishing_pole.png",
|
||||
-- wield_image = "", [MAYBE REVERSE IMAGE]
|
||||
-- wield_scale = {x=1,y=1,z=1},
|
||||
stack_max = 1,
|
||||
liquids_pointable = true,
|
||||
})
|
||||
|
||||
minetest.register_craftitem("fishing:pole_baited", {
|
||||
description = "Baited Fishing Pole",
|
||||
groups = {},
|
||||
inventory_image = "fishing_pole_baited.png",
|
||||
-- wield_image = "",
|
||||
-- wield_scale = {x=1,y=1,z=1},
|
||||
stack_max = 1,
|
||||
liquids_pointable = true,
|
||||
on_use = function (itemstack, user, pointed_thing)
|
||||
if pointed_thing and pointed_thing.under then
|
||||
local node = minetest.env:get_node(pointed_thing.under)
|
||||
if string.find(node.name, "default:water") then
|
||||
if math.random(1, 100) < FISH_CHANCE then
|
||||
local inv = user:get_inventory()
|
||||
if inv:room_for_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""}) then
|
||||
inv:add_item("main", {name="fishing:fish_raw", count=1, wear=0, metadata=""})
|
||||
end
|
||||
end
|
||||
return {name="fishing:pole", count=1, wear=0, metadata=""}
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end,
|
||||
-- ^ default: nil
|
||||
-- ^ Function must return either nil if no item shall be removed from
|
||||
-- inventory, or an itemstack to replace the original itemstack.
|
||||
-- eg. itemstack:take_item(); return itemstack
|
||||
-- ^ Otherwise, the function is free to do what it wants.
|
||||
-- ^ The default functions handle regular use cases.
|
||||
})
|
||||
|
||||
|
||||
--Crafts:
|
||||
if minetest.get_modpath("ropes") ~= nil then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "fishing:pole",
|
||||
recipe = {"default:stick","default:stick","ropes:rope"},
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("moreblocks") ~= nil then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "fishing:pole",
|
||||
recipe = {"default:stick","default:stick","moreblocks:rope"},
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("farming") ~= nil then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "fishing:pole",
|
||||
recipe = {"default:stick","default:stick","farming:string","farming:string"},
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "fishing:fish",
|
||||
recipe = "fishing:fish_raw",
|
||||
cooktime = 2,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "fishing:sushi",
|
||||
recipe = {"fishing:fish_raw","flowers:flower_seaweed"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "fishing:pole_baited",
|
||||
recipe = {"fishing:pole", "group:fishing_bait"},
|
||||
})
|
||||
|
||||
--get worms from digging in dirt:
|
||||
minetest.register_node(":default:dirt", {
|
||||
description = "Dirt",
|
||||
tiles = {"default_dirt.png"},
|
||||
is_ground_content = true,
|
||||
groups = {crumbly=3},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
after_dig_node = function (pos, oldnode, oldmetadata, digger)
|
||||
if math.random(1, 100) < WORM_CHANCE then
|
||||
local tool_in_use = digger:get_wielded_item():get_name()
|
||||
if tool_in_use == "" or tool_in_use == "default:dirt" then
|
||||
local inv = digger:get_inventory()
|
||||
if inv:room_for_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""}) then
|
||||
inv:add_item("main", {name="fishing:bait_worm", count=1, wear=0, metadata=""})
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 871 B |
|
@ -1,46 +0,0 @@
|
|||
--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'},
|
||||
}
|
||||
})
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
default
|
||||
moreblocks
|
||||
gates_wooden
|
||||
homedecor
|
||||
junglegrass
|
||||
ropes
|
||||
moreores
|
||||
desert_uses
|
||||
chains
|
||||
teleporters
|
||||
wool
|
|
@ -1,31 +0,0 @@
|
|||
--- 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,
|
||||
})
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
---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"},
|
||||
},
|
||||
})
|
|
@ -1,225 +0,0 @@
|
|||
-----------------------------------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
|
||||
})
|
|
@ -1,59 +0,0 @@
|
|||
-----------------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")
|
|
@ -1,153 +0,0 @@
|
|||
---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(),
|
||||
})
|
|
@ -1,193 +0,0 @@
|
|||
---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"},
|
||||
})
|
||||
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
---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
|
|
@ -1,19 +0,0 @@
|
|||
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"},
|
||||
},
|
||||
})
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
---------------------------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"},
|
||||
}
|
||||
})
|
|
@ -1,16 +0,0 @@
|
|||
--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"}},
|
||||
})
|
|
@ -1,89 +0,0 @@
|
|||
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",
|
||||
|
||||
})
|
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 479 B |
Before Width: | Height: | Size: 592 B |
Before Width: | Height: | Size: 502 B |
Before Width: | Height: | Size: 619 B |
Before Width: | Height: | Size: 588 B |
Before Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 597 B |
Before Width: | Height: | Size: 566 B |
Before Width: | Height: | Size: 557 B |
Before Width: | Height: | Size: 597 B |
Before Width: | Height: | Size: 581 B |
Before Width: | Height: | Size: 517 B |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 927 B |
Before Width: | Height: | Size: 322 B |
Before Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 317 B |
Before Width: | Height: | Size: 931 B |
Before Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 203 B |
Before Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 927 B |
Before Width: | Height: | Size: 307 B |
Before Width: | Height: | Size: 203 B |
Before Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 361 B |
Before Width: | Height: | Size: 571 B |
Before Width: | Height: | Size: 599 B |
Before Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 329 B |
Before Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 734 B |
Before Width: | Height: | Size: 752 B |
Before Width: | Height: | Size: 650 B |
Before Width: | Height: | Size: 700 B |
Before Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 322 B |
Before Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 294 B |
Before Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 279 B |
Before Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 218 B |
Before Width: | Height: | Size: 290 B |
Before Width: | Height: | Size: 254 B |
Before Width: | Height: | Size: 299 B |
|
@ -1,431 +0,0 @@
|
|||
--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}
|
||||
-- -- }
|
||||
-- -- },
|
||||
-- -- })
|
|
@ -1,123 +0,0 @@
|
|||
--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'},
|
||||
})
|