Crafting and minor tweaks

Added craft recipes for Mycena Essence, Glow Mese Crystals, and a
reverse recipe for them. Fixed selection box for mycena mushrooms,
adjusted crystal variation rates.
master
Chris N 2014-06-27 13:36:45 -10:00
parent 8bed2d7ac8
commit a95247bd70
3 changed files with 41 additions and 4 deletions

36
crafting.lua Normal file
View File

@ -0,0 +1,36 @@
--caverealms crafting.lua
--CRAFT ITEMS--
--mycena essence
minetest.register_craftitem("caverealms:mycena_essence", {
description = "Mycena Essence",
inventory_image = "caverealms_mycena_essence.png",
})
--CRAFT RECIPES--
--mycena essence
minetest.register_craft({
output = "caverealms:mycena_essence",
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_essence","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"}
})

View File

@ -1,4 +1,4 @@
-- caverealms 0.2.6 by HeroOfTheWinds
-- caverealms 0.2.7 by HeroOfTheWinds
-- For latest stable Minetest and back to 0.4.8
-- Depends default
-- License: code WTFPL
@ -8,6 +8,7 @@ caverealms = {}
local modpath = minetest.get_modpath(minetest.get_current_modname())
dofile(modpath.."/config.lua")
dofile(modpath.."/crafting.lua")
-- Parameters (see also config.lua)
@ -267,7 +268,7 @@ minetest.register_node("caverealms:mycena", {
visual_scale = 1.0,
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5, 0.5},
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
})
@ -378,7 +379,7 @@ function caverealms:crystal_stalagmite(x,y,z, area, data, biome)
--for randomness
local mode = 1
if math.random(20) == 1 then
if math.random(15) == 1 then
mode = 2
end
if biome == 3 then
@ -482,7 +483,7 @@ function caverealms:crystal_stalactite(x,y,z, area, data, biome)
--for randomness
local mode = 1
if math.random(20) == 1 then
if math.random(15) == 1 then
mode = 2
end
if biome == 3 then

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 B