mirror of
https://github.com/tacigar/maidroid.git
synced 2025-01-10 00:00:18 +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,
|
||||
})
|
||||
|
||||
-- register a spawner for debugging maidroid mods.
|
||||
minetest.register_craftitem(product_name .. "_spawner", {
|
||||
description = product_name .. " spawner",
|
||||
inventory_image = def.inventory_image,
|
||||
-- register maidroid egg.
|
||||
minetest.register_craftitem(product_name .. "_egg", {
|
||||
description = production_name .. " egg",
|
||||
inventory_image = def.egg_image,
|
||||
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
|
||||
minetest.add_entity(pointed_thing.above, product_name)
|
||||
return itemstack
|
||||
|
@ -4,25 +4,25 @@
|
||||
------------------------------------------------------------
|
||||
|
||||
maidroid.register_maidroid("maidroid:maidroid_mk1", {
|
||||
hp_max = 10,
|
||||
weight = 20,
|
||||
mesh = "maidroid.b3d",
|
||||
textures = {"maidroid_mk1.png"},
|
||||
inventory_image = "maidroid_mk1_spawner.png",
|
||||
hp_max = 10,
|
||||
weight = 20,
|
||||
mesh = "maidroid.b3d",
|
||||
textures = {"maidroid_mk1.png"},
|
||||
egg_image = "maidroid_mk1_egg.png",
|
||||
})
|
||||
|
||||
maidroid.register_maidroid("maidroid:maidroid_mk2", {
|
||||
hp_max = 10,
|
||||
weight = 20,
|
||||
mesh = "maidroid.b3d",
|
||||
textures = {"maidroid_mk2.png"},
|
||||
inventory_image = "maidroid_mk2_spawner.png",
|
||||
hp_max = 10,
|
||||
weight = 20,
|
||||
mesh = "maidroid.b3d",
|
||||
textures = {"maidroid_mk2.png"},
|
||||
egg_image = "maidroid_mk2_egg.png",
|
||||
})
|
||||
|
||||
maidroid.register_maidroid("maidroid:maidroid_mk3", {
|
||||
hp_max = 10,
|
||||
weight = 20,
|
||||
mesh = "maidroid.b3d",
|
||||
textures = {"maidroid_mk3.png"},
|
||||
inventory_image = "maidroid_mk3_spawner.png",
|
||||
hp_max = 10,
|
||||
weight = 20,
|
||||
mesh = "maidroid.b3d",
|
||||
textures = {"maidroid_mk3.png"},
|
||||
egg_image = "maidroid_mk3_egg.png",
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user