final xmas Updates
xmas hub
This commit is contained in:
parent
9a16616e6c
commit
4fd6ed80c4
@ -139,6 +139,7 @@ public class UtilBlockText
|
||||
if (align == TextAlign.CENTER)
|
||||
for (int i=-64 ; i<=64 ; i++)
|
||||
{
|
||||
if (world.getBlockAt(bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ()).getTypeId() == id)
|
||||
MapUtil.ChunkBlockSet(world, bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ(), 0, (byte)0, true);
|
||||
}
|
||||
|
||||
@ -146,6 +147,7 @@ public class UtilBlockText
|
||||
if (align == TextAlign.LEFT)
|
||||
for (int i=0 ; i<=128 ; i++)
|
||||
{
|
||||
if (world.getBlockAt(bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ()).getTypeId() == id)
|
||||
MapUtil.ChunkBlockSet(world, bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ(), 0, (byte)0, true);
|
||||
}
|
||||
|
||||
@ -153,6 +155,7 @@ public class UtilBlockText
|
||||
if (align == TextAlign.RIGHT)
|
||||
for (int i=-128 ; i<=0 ; i++)
|
||||
{
|
||||
if (world.getBlockAt(bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ()).getTypeId() == id)
|
||||
MapUtil.ChunkBlockSet(world, bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ(), 0, (byte)0, true);
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,7 @@ import mineplex.minecraft.game.core.damage.CustomDamageEvent;
|
||||
public class HubManager extends MiniClientPlugin<HubClient>
|
||||
{
|
||||
// ☃❅ Snowman!
|
||||
public HubType Type = HubType.Normal;
|
||||
public HubType Type = HubType.Christmas;
|
||||
|
||||
private BlockRestore _blockRestore;
|
||||
private CoreClientManager _clientManager;
|
||||
|
@ -389,7 +389,7 @@ public class Christmas extends SoloGame
|
||||
|
||||
public void SantaSay(String string, ChristmasAudio audio)
|
||||
{
|
||||
Announce(C.cRed + C.Bold + "Santa: " + ChatColor.RESET + C.cYellow + string);
|
||||
Announce(C.cRed + C.Bold + "Santa: " + ChatColor.RESET + C.cYellow + string, false);
|
||||
|
||||
//Audio
|
||||
if (audio != null && UtilTime.elapsed(_santaSayTime, 1500))
|
||||
@ -412,7 +412,7 @@ public class Christmas extends SoloGame
|
||||
{
|
||||
for (Player player : UtilServer.getPlayers())
|
||||
{
|
||||
UtilPlayer.message(player, C.cDGreen + C.Bold + name + ": " + ChatColor.RESET + C.cGreen + string);
|
||||
UtilPlayer.message(player, C.cDGreen + C.Bold + name + ": " + ChatColor.RESET + C.cGreen + string, false);
|
||||
|
||||
if (audio != null)
|
||||
{
|
||||
|
@ -51,8 +51,8 @@ public class SnowmanBoss
|
||||
_minions.add(new SnowmanMinion(_spawn.getWorld().spawn(_spawn, Snowman.class)));
|
||||
|
||||
_heart = _spawn.getWorld().spawn(_spawn, IronGolem.class);
|
||||
_heart.setMaxHealth(1500);
|
||||
_heart.setHealth(1500);
|
||||
_heart.setMaxHealth(1000);
|
||||
_heart.setHealth(1000);
|
||||
UtilEnt.Vegetate(_heart);
|
||||
|
||||
Host.CreatureAllowOverride = false;
|
||||
@ -75,8 +75,19 @@ public class SnowmanBoss
|
||||
if (Host.GetPlayers(true).isEmpty())
|
||||
return;
|
||||
|
||||
Entity ent = _heart;
|
||||
//Count Size
|
||||
int size = 0;
|
||||
Entity bottom = _heart;
|
||||
while (bottom.getVehicle() != null)
|
||||
{
|
||||
bottom = bottom.getVehicle();
|
||||
size++;
|
||||
}
|
||||
if (size < 3)
|
||||
return;
|
||||
|
||||
//Throw Snowballs
|
||||
Entity ent = _heart;
|
||||
while (ent.getVehicle() != null)
|
||||
{
|
||||
ent = ent.getVehicle();
|
||||
|
@ -114,7 +114,7 @@ public class Part1 extends Part
|
||||
|
||||
private void UpdateSkeleton()
|
||||
{
|
||||
if (_exploded < 0)
|
||||
if (_ignited < 0)
|
||||
return;
|
||||
|
||||
if (GetCreatures().size() > 40)
|
||||
|
@ -219,7 +219,7 @@ public class Part3 extends Part
|
||||
return;
|
||||
|
||||
if (event.GetDamageePlayer() != null)
|
||||
event.AddMod("Christmas Part 3", "Snowball", 3, false);
|
||||
event.AddMod("Christmas Part 3", "Snowball", 2, false);
|
||||
else
|
||||
event.SetCancelled("Snowball vs Mobs");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user