From e6707d1ef9055121508338260dd44ae179dd6460 Mon Sep 17 00:00:00 2001 From: cora Date: Mon, 12 Sep 2022 01:43:59 +0200 Subject: [PATCH] fix iron cage size, doubled dragon view range --- mods/ENTITIES/mobs_mc/ender_dragon.lua | 2 +- mods/MAPGEN/mcl_structures/end_spawn.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/ender_dragon.lua b/mods/ENTITIES/mobs_mc/ender_dragon.lua index af9f762fc..fa5ab9ebd 100644 --- a/mods/ENTITIES/mobs_mc/ender_dragon.lua +++ b/mods/ENTITIES/mobs_mc/ender_dragon.lua @@ -23,7 +23,7 @@ mcl_mobs:register_mob("mobs_mc:enderdragon", { {"mobs_mc_dragon.png"}, }, visual_size = {x=3, y=3}, - view_range = 35, + view_range = 64, walk_velocity = 6, run_velocity = 6, can_despawn = false, diff --git a/mods/MAPGEN/mcl_structures/end_spawn.lua b/mods/MAPGEN/mcl_structures/end_spawn.lua index a25300ef4..0d881617a 100644 --- a/mods/MAPGEN/mcl_structures/end_spawn.lua +++ b/mods/MAPGEN/mcl_structures/end_spawn.lua @@ -60,7 +60,7 @@ end function make_cage(pos,width) local nodes = {} local nodes2 = {} - local r = math.min(1,math.floor(width/2) - 2) + local r = math.max(1,math.floor(width/2) - 2) for x=-r,r do for y = 0,width do for z = -r,r do if x == r or x == -r or z==r or z == -r then table.insert(nodes,vector.add(pos,vector.new(x,y,z)))