1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-28 06:30:18 +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

@ -1,4 +1,6 @@
local S = minetest.get_translator("mobs")
-- peaceful player privilege
minetest.register_privilege("peaceful_player", {
@ -9,13 +11,14 @@ minetest.register_privilege("peaceful_player", {
-- fallback node
minetest.register_node("mobs:fallback_node", {
description = "Fallback Node",
description = S("Fallback Node"),
tiles = {"mobs_fallback.png"},
is_ground_content = false,
groups = {handy = 1, crumbly = 3, not_in_creative_inventory = 1},
drop = ""
})
local path = minetest.get_modpath("mobs")
dofile(path .. "/api.lua") -- mob API