Use 'spawneggs' & 'tnt' to craft 'creeper:spawnegg'
This commit is contained in:
parent
3cc1158417
commit
07d7745455
@ -1 +1,3 @@
|
|||||||
default
|
default
|
||||||
|
spawneggs?
|
||||||
|
tnt?
|
||||||
|
12
init.lua
12
init.lua
@ -325,6 +325,7 @@ end
|
|||||||
|
|
||||||
minetest.register_entity("creeper:creeper",def)
|
minetest.register_entity("creeper:creeper",def)
|
||||||
|
|
||||||
|
if minetest.get_modpath('spawneggs') and minetest.get_modpath('tnt') then
|
||||||
minetest.register_craftitem("creeper:spawnegg",{
|
minetest.register_craftitem("creeper:spawnegg",{
|
||||||
description = "Creeper Spawn Egg",
|
description = "Creeper Spawn Egg",
|
||||||
inventory_image = "creeper_spawnegg.png",
|
inventory_image = "creeper_spawnegg.png",
|
||||||
@ -341,3 +342,14 @@ minetest.register_craftitem("creeper:spawnegg",{
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'creeper:spawnegg',
|
||||||
|
type = 'shapeless',
|
||||||
|
recipe = {
|
||||||
|
'spawneggs:egg', 'tnt:tnt',
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_alias('spawneggs:creeper', 'creeper:spawnegg')
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user