added compatibility for minetest mods (WIP)
This commit is contained in:
parent
31dc0adcda
commit
4d8ccaff01
@ -1,3 +1,5 @@
|
|||||||
|
default.LIGHT_MAX = 14
|
||||||
|
|
||||||
function default.drop_items(pos, oldnode, oldmetadata, digger)
|
function default.drop_items(pos, oldnode, oldmetadata, digger)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:from_table(oldmetadata)
|
meta:from_table(oldmetadata)
|
||||||
@ -78,3 +80,12 @@ function default.sounds.dirt(t)
|
|||||||
{name = "default_dirt_1", gain = 0.1}
|
{name = "default_dirt_1", gain = 0.1}
|
||||||
return t
|
return t
|
||||||
end
|
end
|
||||||
|
|
||||||
|
default.node_sound_stone_defaults = default.sounds.stone
|
||||||
|
default.node_sound_dirt_defaults = default.sounds.dirt
|
||||||
|
default.node_sound_wood_defaults = default.sounds.wood
|
||||||
|
|
||||||
|
default.node_sound_sand_defaults = default.sounds.dirt
|
||||||
|
default.node_sound_gravel_defaults = default.sounds.dirt
|
||||||
|
default.node_sound_leaves_defaults = default.sounds.dirt
|
||||||
|
default.node_sound_glass_defaults = default.sounds.dirt
|
||||||
|
@ -751,7 +751,7 @@ minetest.register_node("default:stone_with_coal", {
|
|||||||
description = "Stone with Coal",
|
description = "Stone with Coal",
|
||||||
tiles = {"default_stone_with_coal.png"},
|
tiles = {"default_stone_with_coal.png"},
|
||||||
groups = {cracky = 2},
|
groups = {cracky = 2},
|
||||||
drops = "default:coal_lump",
|
drop = "default:coal_lump",
|
||||||
sounds = default.sounds.stone(),
|
sounds = default.sounds.stone(),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -864,3 +864,7 @@ default.register_fence("default:fence_jungle_wood", {
|
|||||||
default.register_fence("default:fence_quartz", {
|
default.register_fence("default:fence_quartz", {
|
||||||
material = "default:quartz",
|
material = "default:quartz",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- alias
|
||||||
|
minetest.register_alias("default:dirt_with_grass", "default:grass")
|
||||||
|
minetest.register_alias("default:dirt_with_dry_grass", "default:dry_grass")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user