1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-29 23:10:28 +02:00

add mob repellent

This commit is contained in:
tenplus1
2025-02-09 12:12:52 +00:00
parent 9f472fb690
commit 0a62f05132
6 changed files with 28 additions and 4 deletions

View File

@ -25,6 +25,16 @@ sound_helper("node_sound_water_defaults")
sound_helper("node_sound_snow_defaults")
sound_helper("node_sound_glass_defaults")
-- mob repellent node
minetest.register_node("mobs:mob_repellent", {
description = S("Mob Repellent"),
tiles = {"mobs_repellent.png"},
is_ground_content = false,
groups = {handy = 1, cracky = 3},
sounds = mobs.node_sound_stone_defaults()
})
-- helper function to add {eatable} group to food items
function mobs.add_eatable(item, hp)