Make iron golems and snow golems summonable

Wuzzy 2017-07-05 19:13:00 +02:00
parent 06eaa96f3d
commit fcfb72a643
3 changed files with 17 additions and 2 deletions

@ -32,10 +32,13 @@ mobs_mc.override.items = {
rotten_flesh = "mcl_mobitems:rotten_flesh",
snowball = "mcl_throwing:snowball",
top_snow = "mcl_core:snow",
snowblock = "mcl_core:snowblock",
snow_block = "mcl_core:snowblock",
arrow = "mcl_throwing:arrow",
bow = "mcl_throwing:bow",
head_zombie = "mcl_heads:zombie",
head_creeper = "mcl_heads:creeper",
head_skeleton = "mcl_heads:skeleton",
head_wither_skeleton = "mcl_heads:wither_skeleton",
leather = "mcl_mobitems:leather",
shears = "mcl_tools:shears",
@ -47,6 +50,7 @@ mobs_mc.override.items = {
stick = "mcl_core:stick",
flint = "mcl_core:flint",
iron_ingot = "mcl_core:iron_ingot",
iron_block = "mcl_core:ironblock",
fire = "mcl_fire:fire",
gunpowder = "mcl_mobitems:gunpowder",
flint_and_steel = "mcl_fire:flint_and_steel",

@ -4,4 +4,5 @@ bucket
mcl_wool
mcl_torches
weather_pack
mobs_mc
doc?

@ -82,6 +82,11 @@ local pumpkin_base_def = {
tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_face.png"},
groups = {handy=1,axey=1, plant=1,building_block=1, armor_head=1,non_combat_armor=1, dig_by_piston=1},
sounds = mcl_sounds.node_sound_wood_defaults(),
on_construct = function(pos)
-- Attempt to spawn iron golem or snow golem
mobs_mc.tools.check_iron_golem_summon(pos)
mobs_mc.tools.check_snow_golem_summon(pos)
end,
_mcl_blast_resistance = 5,
_mcl_hardness = 1,
}
@ -107,6 +112,11 @@ minetest.register_node("mcl_farming:pumpkin_face_light", {
tiles = {"farming_pumpkin_top.png", "farming_pumpkin_top.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_side.png", "farming_pumpkin_face_light.png"},
groups = {handy=1,axey=1, building_block=1, dig_by_piston=1 },
sounds = mcl_sounds.node_sound_wood_defaults(),
on_construct = function(pos)
-- Attempt to spawn iron golem or snow golem
mobs_mc.tools.check_iron_golem_summon(pos)
mobs_mc.tools.check_snow_golem_summon(pos)
end,
_mcl_blast_resistance = 5,
_mcl_hardness = 1,
})