diff --git a/tree_monster.lua b/tree_monster.lua index 5fb2130..84095f4 100644 --- a/tree_monster.lua +++ b/tree_monster.lua @@ -22,7 +22,7 @@ local tree_types = { {name = "ethereal:frost_leaves", chance = 1, min = 1, max = 2}, {name = "ethereal:frost_tree", chance = 2, min = 1, max = 2}, {name = "ethereal:crystal_spike", chance = 4, min = 0, max = 2} - } + }, glow = 1 }, { nodes = {"ethereal:yellowleaves"}, @@ -32,7 +32,7 @@ local tree_types = { {name = "ethereal:yellowleaves", chance = 1, min = 1, max = 2}, {name = "ethereal:yellow_tree_sapling", chance = 2, min = 0, max = 2}, {name = "ethereal:golden_apple", chance = 3, min = 0, max = 2} - } + }, glow = 1 }, { nodes = {"default:acacia_bush_leaves"}, @@ -119,6 +119,8 @@ mobs:register_mob("mobs_monster:tree_monster", { self.base_texture = tmp.skins self.object:set_properties({textures = tmp.skins}) + if tmp.glow then self.object:set_properties({glow = tmp.glow}) end + if tmp.drops then self.drops = tmp.drops end if tmp.explode then