dfcaverns/df_mapitems/crystals_mese.lua

61 lines
1.7 KiB
Lua
Raw Normal View History

-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
--glowing mese crystal blocks
minetest.register_node("df_mapitems:glow_mese", {
description = S("Flawless Mese Block"),
_doc_items_longdesc = df_mapitems.doc.glow_mese_desc,
_doc_items_usagehelp = df_mapitems.doc.glow_mese_usage,
tiles = {"dfcaverns_glow_mese.png"},
is_ground_content = true,
groups = {cracky=3},
sounds = default.node_sound_glass_defaults(),
light_source = 13,
paramtype = "light",
use_texture_alpha = true,
drawtype = "glasslike",
sunlight_propagates = true,
})
minetest.register_craft({
output = 'df_mapitems:mese_crystal 2',
recipe = {
{'df_mapitems:glow_mese'},
}
})
minetest.register_node("df_mapitems:mese_crystal", {
description = S("Flawless Mese Crystal"),
_doc_items_longdesc = df_mapitems.doc.glow_mese_desc,
_doc_items_usagehelp = df_mapitems.doc.glow_mese_usage,
tiles = {"dfcaverns_glow_mese.png"},
groups = {cracky = 2},
paramtype = "light",
paramtype2 = "facedir",
drawtype = "mesh",
mesh = "underch_crystal.obj",
light_source = 12,
is_ground_content = true,
sounds = default.node_sound_glass_defaults(),
use_texture_alpha = true,
sunlight_propagates = true,
Small stuff (#8) * cave pearls and spindleshrooms (name subject to change) now are things. Not in mapgen yet. * add the wandering "gas wisp" to light up some of the gas-filled caverns * make wisps rarely spawned by gas explosions * revamp spindlestems into a sort of mineral detector, add glowing extract bottles * optimize pngs * add gas wisps to mapgen * add spindlestems to cavern level 1, most level 1 warrens are now lit up * update internal names, adjust mineral detection range * add cave pearls to some level 2 warrens and tunnels * switch experimental simplecrafting_lib support to crafting mod * Pearls don't grow on falling nodes * put spindlestems with goblin caps, make them always grow red when near those * bunch of documentation * add castle coral to replace cave coral, which has been repurposed into column decoration * documentation for cave coral, update some locale text * add a recipe for cooking oil into paraffin * add old bones to the underworld * MIT license for bones_loot * also cook black cap gills into paraffin, they're oily * add salt crystals to the bloodthorn caverns, illuminating the floor * documentation for salt crystals * auto-generate minetestmapper colors. need to update the spindlestem colours manually * add spindlestem to fungiwood caverns too, and increase warren coverage * in anticipation of eventually adding stuff below the Slade, making glowing pit erosion self-limiting. * add a bit of displacement to the underside of the slade layer * Unique images and names for cooking recipes. * revamp bones loot * add softer footsteps for some fungus types * update mapgen_helper * update cave coral screenshot * mention glowing salts in bloodthorn caverns
2019-08-19 05:20:07 +02:00
on_place = df_mapitems.place_against_surface,
})
minetest.register_craft({
output = 'default:mese_crystal 9',
recipe = {
{'df_mapitems:mese_crystal'},
}
})
if minetest.get_modpath("radiant_damage") and radiant_damage.override_radiant_damage and radiant_damage.config.enable_mese_damage then
radiant_damage.override_radiant_damage("mese", {
emitted_by = {
["df_mapitems:glow_mese"] = radiant_damage.config.mese_damage*12,
["df_mapitems:mese_crystal"] = radiant_damage.config.mese_damage*9
}
})
end