mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-04 14:38:53 +00:00
.
This commit is contained in:
1 parent
54a754b4e7
commit
04ac406117
5 files changed
+2
-2
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -25,7 +25,7 @@ public class ExplosiveProjectile implements CrunchProjectile {
|
|||||||
public Boolean PlaceBlocks = false;
|
public Boolean PlaceBlocks = false;
|
||||||
public Material BlockToPlace = Material.COBWEB;
|
public Material BlockToPlace = Material.COBWEB;
|
||||||
public int BlocksToPlaceAmount = 3;
|
public int BlocksToPlaceAmount = 3;
|
||||||
public int ExplodePower = 2;
|
public float ExplodePower = 2;
|
||||||
public float Inaccuracy = 0.3f;
|
public float Inaccuracy = 0.3f;
|
||||||
public int ProjectilesCount = 1;
|
public int ProjectilesCount = 1;
|
||||||
public Boolean DelayedFire = false;
|
public Boolean DelayedFire = false;
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ public class ClickHandler implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (event.getHitBlock() != null) {
|
if (event.getHitBlock() != null) {
|
||||||
List<Block> Blocks = sphere(event.getHitBlock().getLocation(), proj.ExplodePower);
|
List<Block> Blocks = sphere(event.getHitBlock().getLocation(), (int) proj.ExplodePower);
|
||||||
for (int i = 0; i < proj.BlocksToPlaceAmount; i++) {
|
for (int i = 0; i < proj.BlocksToPlaceAmount; i++) {
|
||||||
Block replace = getRandomElement(Blocks);
|
Block replace = getRandomElement(Blocks);
|
||||||
replace.setType(Material.COBWEB);
|
replace.setType(Material.COBWEB);
|
||||||
|
|||||||
Reference in new issue
Block a user