added support for Real Torch mod
parent
4f318a9412
commit
cd40602a10
|
@ -17,6 +17,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
|
||||||
- Mesa biomes are now topped with dirt with dry grass (redwood saplings grow on dry grass)
|
- Mesa biomes are now topped with dirt with dry grass (redwood saplings grow on dry grass)
|
||||||
- Added bonemeal support for moretree's saplings
|
- Added bonemeal support for moretree's saplings
|
||||||
- Added settings.conf file example so that settings remain after mod update
|
- Added settings.conf file example so that settings remain after mod update
|
||||||
|
- Added support for Real Torch so that torches near water drop an unlit torch
|
||||||
|
|
||||||
### 1.21
|
### 1.21
|
||||||
|
|
||||||
|
|
11
water.lua
11
water.lua
|
@ -125,9 +125,16 @@ minetest.register_abm({
|
||||||
-- If torch touching water then drop as item (when enabled)
|
-- If torch touching water then drop as item (when enabled)
|
||||||
if ethereal.torchdrop == true then
|
if ethereal.torchdrop == true then
|
||||||
|
|
||||||
|
local torch_drop = "default:torch"
|
||||||
|
|
||||||
|
if minetest.get_modpath("real_torch") then
|
||||||
|
torch_drop = "real_torch:torch"
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
label = "Ethereal drop torch",
|
label = "Ethereal drop torch",
|
||||||
nodenames = {"default:torch", "default:torch_wall", "default:torch_ceiling"},
|
nodenames = {"default:torch", "default:torch_wall", "default:torch_ceiling",
|
||||||
|
"real_torch:torch", "real_torch:torch_wall", "real_torch:torch_ceiling"},
|
||||||
neighbors = {"group:water"},
|
neighbors = {"group:water"},
|
||||||
interval = 5,
|
interval = 5,
|
||||||
chance = 1,
|
chance = 1,
|
||||||
|
@ -154,7 +161,7 @@ end
|
||||||
|
|
||||||
minetest.set_node(pos, {name = "air"})
|
minetest.set_node(pos, {name = "air"})
|
||||||
|
|
||||||
minetest.add_item(pos, {name = "default:torch"})
|
minetest.add_item(pos, {name = torch_drop})
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue