Adds air to pMats in block shift
This commit is contained in:
parent
f2de082e0b
commit
c8d957cb7e
@ -26,12 +26,12 @@ public class BlockShiftRitual extends Ritual {
|
|||||||
Material.QUARTZ_ORE, Material.QUARTZ_BLOCK, Material.STAINED_CLAY, Material.LEAVES,
|
Material.QUARTZ_ORE, Material.QUARTZ_BLOCK, Material.STAINED_CLAY, Material.LEAVES,
|
||||||
Material.LOG, Material.SLIME_BLOCK, Material.PRISMARINE, Material.SEA_LANTERN,
|
Material.LOG, Material.SLIME_BLOCK, Material.PRISMARINE, Material.SEA_LANTERN,
|
||||||
Material.HAY_BLOCK, Material.CLAY_BRICK, Material.COAL_BLOCK, Material.PACKED_ICE,
|
Material.HAY_BLOCK, Material.CLAY_BRICK, Material.COAL_BLOCK, Material.PACKED_ICE,
|
||||||
Material.RED_SANDSTONE
|
Material.RED_SANDSTONE, Material.AIR
|
||||||
};
|
};
|
||||||
@Override
|
@Override
|
||||||
public void setup() {
|
public void setup() {
|
||||||
addIngredient(Material.RED_MUSHROOM, 32);
|
addIngredient(Material.RED_MUSHROOM, 8);
|
||||||
addIngredient(Material.BROWN_MUSHROOM, 32);
|
addIngredient(Material.BROWN_MUSHROOM, 8);
|
||||||
addIngredient(Material.WHEAT, 32);
|
addIngredient(Material.WHEAT, 32);
|
||||||
addIngredient(Material.ENDER_PEARL, 4);
|
addIngredient(Material.ENDER_PEARL, 4);
|
||||||
name = "block shift";
|
name = "block shift";
|
||||||
@ -40,11 +40,11 @@ public class BlockShiftRitual extends Ritual {
|
|||||||
@Override
|
@Override
|
||||||
public void execute(Player caster, Player target, Location location) {
|
public void execute(Player caster, Player target, Location location) {
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
Material fromMat = pMat[random.nextInt(64)];
|
Material fromMat = pMat[random.nextInt(65)];
|
||||||
Material toMat = pMat[random.nextInt(64)];
|
Material toMat = pMat[random.nextInt(65)];
|
||||||
for(int x = -5; x <= 5; x ++) {
|
for(int x = -12; x <= 12; x ++) {
|
||||||
for(int y = -5; y <= 5; y ++) {
|
for(int y = -12; y <= 12; y ++) {
|
||||||
for(int z = -5; z <= 5; z ++) {
|
for(int z = -12; z <= 12; z ++) {
|
||||||
Block testBlock = target.getLocation().getBlock().getRelative(x, y, z);
|
Block testBlock = target.getLocation().getBlock().getRelative(x, y, z);
|
||||||
if(testBlock.getType() == fromMat)
|
if(testBlock.getType() == fromMat)
|
||||||
testBlock.setType(toMat);
|
testBlock.setType(toMat);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user