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.
This commit is contained in:
parent
8bed2d7ac8
commit
a95247bd70
36
crafting.lua
Normal file
36
crafting.lua
Normal 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"}
|
||||
})
|
9
init.lua
9
init.lua
@ -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
|
||||
|
BIN
textures/caverealms_mycena_essence.png
Normal file
BIN
textures/caverealms_mycena_essence.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 290 B |
Loading…
x
Reference in New Issue
Block a user