added philosopher stone crafts, emcs.lua runs last(partially)

master
unknown 2015-08-03 06:53:44 -04:00
parent 6a450c3299
commit ec78a20f41
4 changed files with 116 additions and 70 deletions

View File

@ -1 +1,12 @@
default
default
bucket?
doors?
dye?
farming?
flowers?
screwdriver?
stairs?
tnt?
vessels?
wool?
xpanes?

View File

@ -1,82 +1,82 @@
local emcs = {
["default"] = {
stone = 4,
cobble = 1,
desert_stone = 1,
stonebrick = 1,
desert_stonebrick = 1,
dirt_with_grass = 50,
dirt_with_snow = 50,
-- Plains --
dirt = 1,
sand=1,
grass_1 = 5,
sand = 1,
-- papyrus
-- clay
-- clay_lump
-- tree
-- leaves
-- apple
-- sapling
-- Tundra --
snow = 1,
-- ice
-- pinetree
-- pinewood
-- pine_sapling
-- Desert --
desert_cobble = 1,
desert_sand = 1,
gravel = 4,
sandstone = 4,
sandstonebrick = 4,
clay = 16,
brick = 16,
tree = 32,
jungletree = 32,
junglewood = 8,
cactus = 8,
papyrus = 32,
bookshelf = 336,
glass = 1,
fence_wood = 12,
rail = 96,
ladder = 14,
wood = 8,
torch = 9,
sign_wall = 52,
chest = 64,
chest_locked = 320,
furnace = 8,
mossycobble = 1,
mese=75978,
obsidian = 64,
stick = 2,
paper = 96,
book = 288,
-- Old Value: 128
-- Precise Value: 57
-- cactus
dry_shrub = 5,
-- Jungle --
-- jungletree
-- jungleleaves
junglegrass = 5,
-- junglesapling
-- Underground--
cobble = 1,
-- mossycobble
-- gravel
coal_lump = 55,
-- Old Value: 8442
-- Precise Value: 420 (including blocks)
mese_crystal = 425,
-- Old Value: 8192
-- Precise Value: 848
diamond = 850,
clay_lump = 16,
-- Old Value: 256
-- Precise Value: 57
iron_lump = 61,
-- Precise Value (of lump): 61
steel_ingot = 90,
-- Old Value: 85
-- Precise Value (of lump): 146
copper_ingot = 225,
--Old Value: 255
bronze_ingot = 90 + 225,
-- Old Value: 2048
copper_lump = 146,
-- Precise Value (of lump): 442
gold_ingot = 675,
-- Old Value: 938
-- Precise Value: 47
mese_crystal_fragment = 25,
clay_brick = 16,
}
gold_lump = 488,
-- Precise Value: 420
mese_crystal = 425,
-- Precise Value: 848
diamond = 976,
-- obsidian
-- nyancat
-- nyancat_rainbow
-- Exceptions --
-- wood
-- junglewood
-- stick
},
-- ["bucket"] = {
-- -- bucket_water
-- -- bucket_lava
-- },
["farming"] = {
seed_wheat = 20,
seed_cotton = 35,
wheat = 50,
flour = 200,
bread = 300,
string = 86,
},
["flowers"] = {
dandelion_white = 5,
dandelion_yellow = 5,
geranium = 5,
rose = 5,
tulip = 5,
viola = 5,
},
}
for modname, itemlist in pairs(emcs) do
for itemname, emcvalue in pairs(itemlist) do
print(minetest.registered_items[modname..":"..itemname].description)
minetest.override_item(modname..":"..itemname, {
description = minetest.registered_items[modname..":"..itemname].description.."\nEMC = "..tostring(emcvalue),
description = minetest.registered_items[modname..":"..itemname].description.."\nEMC Value: "..emcvalue,
emc = emcvalue,
})
end

View File

@ -1,7 +1,7 @@
dofile(minetest.get_modpath("equivalent_exchange").."/emcs.lua")
dofile(minetest.get_modpath("equivalent_exchange").."/alchemical_chest.lua")
dofile(minetest.get_modpath("equivalent_exchange").."/condenser.lua")
dofile(minetest.get_modpath("equivalent_exchange").."/philosophers_stone.lua")
dofile(minetest.get_modpath("equivalent_exchange").."/normal_items.lua")
dofile(minetest.get_modpath("equivalent_exchange").."/emcs.lua")
print("[equivalent_exchange] Mod loaded!")

View File

@ -19,5 +19,40 @@ minetest.register_craft({
}
})
--Transmutation Crafts here after default EMCs are sorted out --
--Transmutation Crafts --
minetest.register_craft({
type = "shapeless",
output = "default:steel_ingot 4",
recipe = {modname.."philosophers_stone", "default:gold_ingot"},
replacements = {
{modname.."philosophers_stone", modname.."philosophers_stone"}
}
})
minetest.register_craft({
type = "shapeless",
output = "default:gold_ingot",
recipe = {modname.."philosophers_stone", "default:steel_ingot", "default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
replacements = {
{modname.."philosophers_stone", modname.."philosophers_stone"}
}
})
minetest.register_craft({
type = "shapeless",
output = "default:gold_ingot 2",
recipe = {modname.."philosophers_stone", "default:diamond"},
replacements = {
{modname.."philosophers_stone", modname.."philosophers_stone"}
}
})
minetest.register_craft({
type = "shapeless",
output = "default:diamond",
recipe = {modname.."philosophers_stone", "default:gold_ingot", "default:gold_ingot"},
replacements = {
{modname.."philosophers_stone", modname.."philosophers_stone"}
}
})