Browse Source

preparation for adding uses

master
HybridDog 4 years ago
parent
commit
737bbf6c00
3 changed files with 52 additions and 0 deletions
  1. +2
    -0
      depends.txt
  2. +50
    -0
      init.lua
  3. BIN
      textures/riesenpilz_light_detector.png

+ 2
- 0
depends.txt View File

@@ -1,3 +1,5 @@
default
vector_extras
digilines?
fence_registration?
technic?

+ 50
- 0
init.lua View File

@@ -1081,9 +1081,10 @@ end)



-- 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 View File

Before After
Width: 16  |  Height: 16  |  Size: 290B

Loading…
Cancel
Save