mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 13:04:46 +00:00
Add Item Burning to Fire Attacks
This commit is contained in:
1 parent
cac5a53997
commit
353d90a00a
4 files changed
+21
-7
No files matched your search
@@ -90,6 +90,7 @@ public class EntityProjectile extends EntityThrowable {
|
||||
public boolean destroyTerrain = true;
|
||||
public int explosiveRadius = 0;
|
||||
public EnumPotionType effect = EnumPotionType.None;
|
||||
public boolean burnItem = true;
|
||||
public int duration = 5;
|
||||
public int amplify = 0;
|
||||
public int accuracy = 60;
|
||||
@@ -235,10 +236,9 @@ public class EntityProjectile extends EntityThrowable {
|
||||
this.rotationPitch -= 20;
|
||||
}
|
||||
}
|
||||
if (this.effect == EnumPotionType.Fire && !this.inGround)
|
||||
if (this.effect == EnumPotionType.Fire && !this.inGround && this.burnItem)
|
||||
this.setFire(1);
|
||||
|
||||
|
||||
Block block = this.worldObj.getBlock(this.xTile, this.yTile, this.zTile);
|
||||
|
||||
if ((this.isArrow() || this.sticksToWalls()) && block != null) {
|
||||
@@ -801,6 +801,7 @@ public class EntityProjectile extends EntityThrowable {
|
||||
this.explosive = stats.pExplode;
|
||||
this.explosiveRadius = stats.pArea;
|
||||
this.effect = stats.pEffect;
|
||||
this.burnItem = stats.pBurnItem;
|
||||
this.duration = stats.pDur;
|
||||
this.amplify = stats.pEffAmp;
|
||||
this.setParticleEffect(stats.pTrail);
|
||||
|
||||
Reference in new issue
Block a user