reduced number of falling blocks in skywars by 80%

added halloween horror mount
This commit is contained in:
Cheese 2015-10-08 12:04:28 +11:00
parent e2e2356b04
commit c94184c5ae
3 changed files with 32 additions and 1 deletions

View File

@ -57,6 +57,7 @@ public class MountManager extends MiniPlugin
_types.add(new MountDragon(this));
_types.add(new MountSlime(this));
_types.add(new MountCart(this));
_types.add(new MountUndead(this));
//_types.add(new MountSheep(this));
}

View File

@ -0,0 +1,30 @@
package mineplex.core.mount.types;
import org.bukkit.Material;
import org.bukkit.entity.Horse.Color;
import org.bukkit.entity.Horse.Style;
import org.bukkit.entity.Horse.Variant;
import mineplex.core.common.util.C;
import mineplex.core.mount.HorseMount;
import mineplex.core.mount.MountManager;
public class MountZombie extends HorseMount
{
public MountZombie(MountManager manager)
{
super(manager, "Decrepit Warhorse", new String[]
{
C.cWhite + "Once a fierce warhorse, this",
C.cWhite + "undead beast will send fear",
C.cWhite + "into the hearts of your enemies.",
"",
C.cYellow + "Earned by defeating the Pumpkin King",
C.cYellow + "in the 2015 Halloween Horror Event.",
},
Material.ROTTEN_FLESH,
(byte)0,
-1,
Color.BLACK, Style.BLACK_DOTS, Variant.UNDEAD_HORSE, 0.8, null);
}
}

View File

@ -436,7 +436,7 @@ public abstract class Skywars extends Game
_worldBlocks.remove(bestBlock);
if (bestBlock.getType() != Material.AIR)
{
if (Math.random() > 0.75D)
if (Math.random() > 0.95D)
{
bestBlock.getWorld().spawnFallingBlock(
bestBlock.getLocation().add(0.5D, 0.5D, 0.5D),