mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-01-24 16:20:19 +01:00
add ":" to beginning of egg registration to help with mobs registered outwith mod name
This commit is contained in:
parent
99bea53af3
commit
be2d630fdf
6
api.lua
6
api.lua
@ -14,7 +14,7 @@ local use_vh1 = minetest.get_modpath("visual_harm_1ndicators")
|
|||||||
-- Global
|
-- Global
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20240426",
|
version = "20240505",
|
||||||
translate = S,
|
translate = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||||
node_snow = minetest.registered_aliases["mapgen_snow"]
|
node_snow = minetest.registered_aliases["mapgen_snow"]
|
||||||
@ -4463,7 +4463,7 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative)
|
|||||||
-- these are only created for animals and npc mobs, not monsters
|
-- these are only created for animals and npc mobs, not monsters
|
||||||
if is_mob.type ~= "monster" then
|
if is_mob.type ~= "monster" then
|
||||||
|
|
||||||
minetest.register_craftitem(mob .. "_set", {
|
minetest.register_craftitem(":" .. mob .. "_set", {
|
||||||
|
|
||||||
description = S("@1 (Tamed)", desc),
|
description = S("@1 (Tamed)", desc),
|
||||||
inventory_image = invimg,
|
inventory_image = invimg,
|
||||||
@ -4520,7 +4520,7 @@ if is_mob.type ~= "monster" then
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- register old stackable mob egg
|
-- register old stackable mob egg
|
||||||
minetest.register_craftitem(mob, {
|
minetest.register_craftitem(":" .. mob, {
|
||||||
|
|
||||||
description = desc,
|
description = desc,
|
||||||
inventory_image = invimg,
|
inventory_image = invimg,
|
||||||
|
Loading…
Reference in New Issue
Block a user