forked from MineClone5/MineClone5
Predict water when digging ice
This commit is contained in:
parent
f40eeb4477
commit
daed3059bf
|
@ -788,6 +788,7 @@ minetest.register_node("mcl_core:ice", {
|
||||||
groups = {handy=1,pickaxey=1, slippery=3, building_block=1},
|
groups = {handy=1,pickaxey=1, slippery=3, building_block=1},
|
||||||
drop = "",
|
drop = "",
|
||||||
sounds = mcl_sounds.node_sound_glass_defaults(),
|
sounds = mcl_sounds.node_sound_glass_defaults(),
|
||||||
|
node_dig_prediction = "mcl_core:water_source",
|
||||||
after_dig_node = function(pos, oldnode)
|
after_dig_node = function(pos, oldnode)
|
||||||
-- Create a water source if ice is destroyed and there was something below it
|
-- Create a water source if ice is destroyed and there was something below it
|
||||||
local below = {x=pos.x, y=pos.y-1, z=pos.z}
|
local below = {x=pos.x, y=pos.y-1, z=pos.z}
|
||||||
|
|
Loading…
Reference in New Issue