dragon update
This commit is contained in:
parent
2174c958d9
commit
329953b2b7
@ -6,6 +6,7 @@ import mineplex.core.common.util.UtilAlg;
|
|||||||
import mineplex.core.common.util.UtilEnt;
|
import mineplex.core.common.util.UtilEnt;
|
||||||
import mineplex.core.common.util.UtilMath;
|
import mineplex.core.common.util.UtilMath;
|
||||||
import mineplex.core.common.util.UtilTime;
|
import mineplex.core.common.util.UtilTime;
|
||||||
|
import mineplex.core.common.util.UtilWorld;
|
||||||
import mineplex.core.updater.UpdateType;
|
import mineplex.core.updater.UpdateType;
|
||||||
import mineplex.core.updater.event.UpdateEvent;
|
import mineplex.core.updater.event.UpdateEvent;
|
||||||
|
|
||||||
@ -50,6 +51,8 @@ public class Dragon extends MiniPlugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.out.println("Spawning Hub Dragon");
|
||||||
|
|
||||||
Dragon = Manager.GetSpawn().getWorld().spawn(Manager.GetSpawn().add(0, 50, 0), EnderDragon.class);
|
Dragon = Manager.GetSpawn().getWorld().spawn(Manager.GetSpawn().add(0, 50, 0), EnderDragon.class);
|
||||||
UtilEnt.Vegetate(Dragon);
|
UtilEnt.Vegetate(Dragon);
|
||||||
|
|
||||||
@ -103,7 +106,7 @@ public class Dragon extends MiniPlugin
|
|||||||
else if (r > 0.32) color = ChatColor.AQUA;
|
else if (r > 0.32) color = ChatColor.AQUA;
|
||||||
else if (r > 0.16) color = ChatColor.LIGHT_PURPLE;
|
else if (r > 0.16) color = ChatColor.LIGHT_PURPLE;
|
||||||
|
|
||||||
Dragon.setCustomName(color + C.Bold + "Welcome to Mineplex - Home of the highest quality Minecraft Plugins");
|
Dragon.setCustomName(color + C.Bold + C.Line + "Welcome to Mineplex - Home of Premium Quality Minigames");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Turn()
|
private void Turn()
|
||||||
@ -176,6 +179,8 @@ public class Dragon extends MiniPlugin
|
|||||||
RangeBest = 9000;
|
RangeBest = 9000;
|
||||||
RangeTime = System.currentTimeMillis();
|
RangeTime = System.currentTimeMillis();
|
||||||
|
|
||||||
Target = Manager.GetSpawn().add(100 - UtilMath.r(200), 50 + UtilMath.r(50), 100 - UtilMath.r(200));
|
Target = Manager.GetSpawn().add(40 - UtilMath.r(80), 50 + UtilMath.r(30), 40 - UtilMath.r(80));
|
||||||
|
|
||||||
|
System.out.println("Dragon flying to: " + UtilWorld.locToStrClean(Target));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user