set is_ground_content for spawner and meat blocks (thx SwissAlpS)

This commit is contained in:
tenplus1 2024-02-27 08:05:02 +00:00
parent b3b89e6dea
commit 95f3e98867
3 changed files with 4 additions and 1 deletions

View File

@ -14,7 +14,7 @@ local use_vh1 = minetest.get_modpath("visual_harm_1ndicators")
-- Global
mobs = {
mod = "redo",
version = "20240223",
version = "20240227",
translate = S,
invis = minetest.global_exists("invisibility") and invisibility or {},
node_snow = minetest.registered_aliases["mapgen_snow"]

View File

@ -379,6 +379,7 @@ minetest.register_node("mobs:meatblock", {
tiles = {"mobs_meat_top.png", "mobs_meat_bottom.png", "mobs_meat_side.png"},
paramtype2 = "facedir",
groups = {choppy = 1, oddly_breakable_by_hand = 1, flammable = 2, axey = 1, handy = 1},
is_ground_content = false,
sounds = mod_def and default.node_sound_leaves_defaults(),
on_place = minetest.rotate_node,
on_use = minetest.item_eat(20),
@ -401,6 +402,7 @@ minetest.register_node("mobs:meatblock_raw", {
tiles = {"mobs_meat_raw_top.png", "mobs_meat_raw_bottom.png", "mobs_meat_raw_side.png"},
paramtype2 = "facedir",
groups = {choppy = 1, oddly_breakable_by_hand = 1, flammable = 2, axey = 1, handy = 1},
is_ground_content = false,
sounds = mod_def and default.node_sound_leaves_defaults(),
on_place = minetest.rotate_node,
on_use = minetest.item_eat(20),

View File

@ -21,6 +21,7 @@ minetest.register_node("mobs:spawner", {
walkable = true,
description = S("Mob Spawner"),
groups = {cracky = 1, pickaxey = 3},
is_ground_content = false,
_mcl_hardness = 1,
_mcl_blast_resistance = 5,