mirror of
https://github.com/HybridDog/riesenpilz.git
synced 2025-01-09 09:20:27 +01:00
preparation for adding uses
This commit is contained in:
parent
f34f37a6d7
commit
737bbf6c00
@ -1,3 +1,5 @@
|
||||
default
|
||||
vector_extras
|
||||
digilines?
|
||||
fence_registration?
|
||||
technic?
|
||||
|
51
init.lua
51
init.lua
@ -1081,9 +1081,10 @@ end)
|
||||
|
||||
|
||||
|
||||
-- Food
|
||||
-- Uses
|
||||
|
||||
|
||||
-- mush45's meal
|
||||
minetest.register_craftitem("riesenpilz:mush45_meal", {
|
||||
description = "Mushroom Meal",
|
||||
inventory_image = "riesenpilz_mush45_meal.png",
|
||||
@ -1099,6 +1100,54 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
|
||||
--[[ unfinished
|
||||
if minetest.global_exists(technic) then
|
||||
if minetest.global_exists(digilines) then
|
||||
-- digiline light value detector
|
||||
minetest.register_node("riesenpilz:light_detector" {
|
||||
tiles = {"riesenpilz_light_detector.png"},
|
||||
paramtype = "light",
|
||||
digiline = {
|
||||
receive = function(pos)
|
||||
local light = minetest.get_node_light(pos)
|
||||
send("light_detector", light)
|
||||
end,
|
||||
},
|
||||
--sounds = ,
|
||||
})
|
||||
|
||||
--technic.comp({"riesenpilz:glowshroom 10", "coal"}, "riesenpilz:light_detector")
|
||||
end
|
||||
|
||||
|
||||
--[ [
|
||||
if minetest.global_exists(3darmor) then add to depends
|
||||
--lavashroom skin armor, swimming in lava possible
|
||||
|
||||
minetest.register_craftitem("riesenpilz:lavashroom_flesh", {
|
||||
description = "lavashroom's flesh",
|
||||
inventory_image = "riesenpilz_lavashroom_flesh.png",
|
||||
on_use = minetest.item_eat(3),
|
||||
})
|
||||
|
||||
minetest.register_craftitem("riesenpilz:lavashroom_skin", {
|
||||
description = "lavashroom's skin",
|
||||
inventory_image = "riesenpilz_lavashroom_skin.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("riesenpilz:antilava_plate", {
|
||||
description = "lava protecting plate",
|
||||
inventory_image = "riesenpilz_antilava_plate.png",
|
||||
})
|
||||
|
||||
technic.centri("riesenpilz:lavashroom", {"riesenpilz:lavashroom_flesh", "riesenpilz:lavashroom_skin"})
|
||||
technic.comp("riesenpilz:lavashroom_skin 5", "riesenpilz:antilava_plate")
|
||||
|
||||
armor_register(plate blah)
|
||||
end--] ]
|
||||
})
|
||||
end--]]
|
||||
|
||||
|
||||
if riesenpilz.enable_mapgen then
|
||||
dofile(modpath.."mapgen.lua")
|
||||
|
BIN
textures/riesenpilz_light_detector.png
Normal file
BIN
textures/riesenpilz_light_detector.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 290 B |
Loading…
Reference in New Issue
Block a user