mirror of
https://github.com/tacigar/maidroid.git
synced 2025-01-10 08:10:17 +01:00
Change spawner -> egg
This commit is contained in:
parent
eea07b64af
commit
4fa3d78819
@ -523,13 +523,13 @@ function maidroid.register_maidroid(product_name, def)
|
|||||||
move_main_to_wield = maidroid.maidroid.move_main_to_wield,
|
move_main_to_wield = maidroid.maidroid.move_main_to_wield,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- register a spawner for debugging maidroid mods.
|
-- register maidroid egg.
|
||||||
minetest.register_craftitem(product_name .. "_spawner", {
|
minetest.register_craftitem(product_name .. "_egg", {
|
||||||
description = product_name .. " spawner",
|
description = production_name .. " egg",
|
||||||
inventory_image = def.inventory_image,
|
inventory_image = def.egg_image,
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
|
|
||||||
on_use = function(item_stack, user, pointed_thing)
|
on_use = function(item_stack, user, pointed_thing)
|
||||||
if pointed_thing.above ~= nil then
|
if pointed_thing.above ~= nil then
|
||||||
minetest.add_entity(pointed_thing.above, product_name)
|
minetest.add_entity(pointed_thing.above, product_name)
|
||||||
return itemstack
|
return itemstack
|
||||||
|
@ -4,25 +4,25 @@
|
|||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
|
||||||
maidroid.register_maidroid("maidroid:maidroid_mk1", {
|
maidroid.register_maidroid("maidroid:maidroid_mk1", {
|
||||||
hp_max = 10,
|
hp_max = 10,
|
||||||
weight = 20,
|
weight = 20,
|
||||||
mesh = "maidroid.b3d",
|
mesh = "maidroid.b3d",
|
||||||
textures = {"maidroid_mk1.png"},
|
textures = {"maidroid_mk1.png"},
|
||||||
inventory_image = "maidroid_mk1_spawner.png",
|
egg_image = "maidroid_mk1_egg.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
maidroid.register_maidroid("maidroid:maidroid_mk2", {
|
maidroid.register_maidroid("maidroid:maidroid_mk2", {
|
||||||
hp_max = 10,
|
hp_max = 10,
|
||||||
weight = 20,
|
weight = 20,
|
||||||
mesh = "maidroid.b3d",
|
mesh = "maidroid.b3d",
|
||||||
textures = {"maidroid_mk2.png"},
|
textures = {"maidroid_mk2.png"},
|
||||||
inventory_image = "maidroid_mk2_spawner.png",
|
egg_image = "maidroid_mk2_egg.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
maidroid.register_maidroid("maidroid:maidroid_mk3", {
|
maidroid.register_maidroid("maidroid:maidroid_mk3", {
|
||||||
hp_max = 10,
|
hp_max = 10,
|
||||||
weight = 20,
|
weight = 20,
|
||||||
mesh = "maidroid.b3d",
|
mesh = "maidroid.b3d",
|
||||||
textures = {"maidroid_mk3.png"},
|
textures = {"maidroid_mk3.png"},
|
||||||
inventory_image = "maidroid_mk3_spawner.png",
|
egg_image = "maidroid_mk3_egg.png",
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user