forked from LizzyFleckenstein03/Memeclone
Make iron golems and snow golems summonable
This commit is contained in:
parent
06eaa96f3d
commit
fcfb72a643
|
@ -32,10 +32,13 @@ mobs_mc.override.items = {
|
||||||
rotten_flesh = "mcl_mobitems:rotten_flesh",
|
rotten_flesh = "mcl_mobitems:rotten_flesh",
|
||||||
snowball = "mcl_throwing:snowball",
|
snowball = "mcl_throwing:snowball",
|
||||||
top_snow = "mcl_core:snow",
|
top_snow = "mcl_core:snow",
|
||||||
snowblock = "mcl_core:snowblock",
|
snow_block = "mcl_core:snowblock",
|
||||||
|
|
||||||
arrow = "mcl_throwing:arrow",
|
arrow = "mcl_throwing:arrow",
|
||||||
bow = "mcl_throwing:bow",
|
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",
|
leather = "mcl_mobitems:leather",
|
||||||
shears = "mcl_tools:shears",
|
shears = "mcl_tools:shears",
|
||||||
|
@ -47,6 +50,7 @@ mobs_mc.override.items = {
|
||||||
stick = "mcl_core:stick",
|
stick = "mcl_core:stick",
|
||||||
flint = "mcl_core:flint",
|
flint = "mcl_core:flint",
|
||||||
iron_ingot = "mcl_core:iron_ingot",
|
iron_ingot = "mcl_core:iron_ingot",
|
||||||
|
iron_block = "mcl_core:ironblock",
|
||||||
fire = "mcl_fire:fire",
|
fire = "mcl_fire:fire",
|
||||||
gunpowder = "mcl_mobitems:gunpowder",
|
gunpowder = "mcl_mobitems:gunpowder",
|
||||||
flint_and_steel = "mcl_fire:flint_and_steel",
|
flint_and_steel = "mcl_fire:flint_and_steel",
|
||||||
|
|
|
@ -4,4 +4,5 @@ bucket
|
||||||
mcl_wool
|
mcl_wool
|
||||||
mcl_torches
|
mcl_torches
|
||||||
weather_pack
|
weather_pack
|
||||||
|
mobs_mc
|
||||||
doc?
|
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"},
|
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},
|
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(),
|
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_blast_resistance = 5,
|
||||||
_mcl_hardness = 1,
|
_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"},
|
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 },
|
groups = {handy=1,axey=1, building_block=1, dig_by_piston=1 },
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
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_blast_resistance = 5,
|
||||||
_mcl_hardness = 1,
|
_mcl_hardness = 1,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue