mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-21 15:21:21 +00:00
Make hidden fireflies floodable
This commit is contained in:
parent
0ea6065a09
commit
0df2753a68
1 changed files with 1 additions and 3 deletions
|
@ -25,9 +25,6 @@ minetest.register_node("fireflies:firefly", {
|
||||||
},
|
},
|
||||||
light_source = 6,
|
light_source = 6,
|
||||||
floodable = true,
|
floodable = true,
|
||||||
on_flood = function(pos, oldnode, newnode)
|
|
||||||
minetest.add_item(pos, "fireflies:firefly 1")
|
|
||||||
end,
|
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
local player_name = placer:get_player_name()
|
local player_name = placer:get_player_name()
|
||||||
local pos = pointed_thing.above
|
local pos = pointed_thing.above
|
||||||
|
@ -62,6 +59,7 @@ minetest.register_node("fireflies:hidden_firefly", {
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
drop = "",
|
drop = "",
|
||||||
groups = {not_in_creative_inventory = 1},
|
groups = {not_in_creative_inventory = 1},
|
||||||
|
floodable = true,
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
local player_name = placer:get_player_name()
|
local player_name = placer:get_player_name()
|
||||||
local pos = pointed_thing.above
|
local pos = pointed_thing.above
|
||||||
|
|
Loading…
Add table
Reference in a new issue