From f04a5a4cc9ed55e5a6bde299fb9db9d3b551ea8b Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Thu, 25 Feb 2021 12:48:17 +0100 Subject: [PATCH] Prevent Ender dragon and Wither from despawning --- mods/ENTITIES/mobs_mc/ender_dragon.lua | 1 + mods/ENTITIES/mobs_mc/wither.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/mods/ENTITIES/mobs_mc/ender_dragon.lua b/mods/ENTITIES/mobs_mc/ender_dragon.lua index c579213a0a..50b7819039 100644 --- a/mods/ENTITIES/mobs_mc/ender_dragon.lua +++ b/mods/ENTITIES/mobs_mc/ender_dragon.lua @@ -25,6 +25,7 @@ mobs:register_mob("mobs_mc:enderdragon", { view_range = 35, walk_velocity = 6, run_velocity = 6, + can_despawn = false, sounds = { -- TODO: more sounds shoot_attack = "mobs_mc_ender_dragon_shoot", diff --git a/mods/ENTITIES/mobs_mc/wither.lua b/mods/ENTITIES/mobs_mc/wither.lua index 28c1a2138c..8e90ddc159 100644 --- a/mods/ENTITIES/mobs_mc/wither.lua +++ b/mods/ENTITIES/mobs_mc/wither.lua @@ -43,6 +43,7 @@ mobs:register_mob("mobs_mc:wither", { dogshoot_switch = 1, dogshoot_count_max =1, attack_animals = true, + can_despawn = false, drops = { {name = mobs_mc.items.nether_star, chance = 1,