From fcfb72a64352491c1cac1c6c762a534af7e4cca1 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 5 Jul 2017 19:13:00 +0200 Subject: [PATCH] Make iron golems and snow golems summonable --- mods/ENTITIES/mobs_mc_gameconfig/init.lua | 8 ++++++-- mods/ITEMS/mcl_farming/depends.txt | 1 + mods/ITEMS/mcl_farming/pumpkin.lua | 10 ++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mobs_mc_gameconfig/init.lua b/mods/ENTITIES/mobs_mc_gameconfig/init.lua index 36d1eda9c..dd263a679 100644 --- a/mods/ENTITIES/mobs_mc_gameconfig/init.lua +++ b/mods/ENTITIES/mobs_mc_gameconfig/init.lua @@ -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", diff --git a/mods/ITEMS/mcl_farming/depends.txt b/mods/ITEMS/mcl_farming/depends.txt index 6cbf6bc9a..9c412baf2 100644 --- a/mods/ITEMS/mcl_farming/depends.txt +++ b/mods/ITEMS/mcl_farming/depends.txt @@ -4,4 +4,5 @@ bucket mcl_wool mcl_torches weather_pack +mobs_mc doc? diff --git a/mods/ITEMS/mcl_farming/pumpkin.lua b/mods/ITEMS/mcl_farming/pumpkin.lua index f5753b661..a7a9c0b9a 100644 --- a/mods/ITEMS/mcl_farming/pumpkin.lua +++ b/mods/ITEMS/mcl_farming/pumpkin.lua @@ -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, })