ea1a20b32a
Splitting the core giant-cave-making code out into its own separate mod
55 lines
1.5 KiB
Lua
55 lines
1.5 KiB
Lua
-- internationalization boilerplate
|
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
|
local S, NS = dofile(MP.."/intllib.lua")
|
|
|
|
--CRAFT ITEMS--
|
|
|
|
--mycena powder
|
|
minetest.register_craftitem("caverealms:mycena_powder", {
|
|
description = S("Mycena Powder"),
|
|
inventory_image = "caverealms_mycena_powder.png",
|
|
})
|
|
|
|
--CRAFT RECIPES--
|
|
|
|
--mycena powder
|
|
minetest.register_craft({
|
|
output = "caverealms:mycena_powder",
|
|
type = "shapeless",
|
|
recipe = {"caverealms:mycena"}
|
|
})
|
|
|
|
|
|
--glow mese block
|
|
minetest.register_craft({
|
|
output = "caverealms:glow_mese",
|
|
recipe = {
|
|
{"default:mese_crystal_fragment","default:mese_crystal_fragment","default:mese_crystal_fragment"},
|
|
{"default:mese_crystal_fragment","caverealms:mycena_powder","default:mese_crystal_fragment"},
|
|
{"default:mese_crystal_fragment","default:mese_crystal_fragment","default:mese_crystal_fragment"}
|
|
}
|
|
})
|
|
|
|
--reverse craft for glow mese
|
|
minetest.register_craft({
|
|
output = "default:mese_crystal_fragment 8",
|
|
type = "shapeless",
|
|
recipe = {"caverealms:glow_mese"}
|
|
})
|
|
|
|
--thin ice to water
|
|
minetest.register_craft({
|
|
output = "default:water_source",
|
|
type = "shapeless",
|
|
recipe = {"caverealms:thin_ice"}
|
|
})
|
|
|
|
--use for coal dust
|
|
minetest.register_craft({
|
|
output = "default:coalblock",
|
|
recipe = {
|
|
{"caverealms:coal_dust","caverealms:coal_dust","caverealms:coal_dust"},
|
|
{"caverealms:coal_dust","caverealms:coal_dust","caverealms:coal_dust"},
|
|
{"caverealms:coal_dust","caverealms:coal_dust","caverealms:coal_dust"}
|
|
}
|
|
}) |