Fixed the projectile so that it actually work
Amazing, eh?
This commit is contained in:
parent
112b4e6b53
commit
eb46185dc8
8 changed files with 93 additions and 113 deletions
|
@ -1,5 +1,6 @@
|
|||
package WayofTime.alchemicalWizardry.common.spell.complex.effect.impactEffects;
|
||||
package WayofTime.alchemicalWizardry.common.spell.complex.effect.impactEffects.fire;
|
||||
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.impactEffects.ProjectileImpactEffect;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
|
@ -24,10 +25,20 @@ public class ProjectileDefaultFire extends ProjectileImpactEffect
|
|||
int x = mop.blockX;
|
||||
int y = mop.blockY;
|
||||
int z = mop.blockZ;
|
||||
|
||||
if(world.isAirBlock(x, y+1, z))
|
||||
int range = 0;
|
||||
for(int i=-range; i<=range;i++)
|
||||
{
|
||||
world.setBlock(x, y+1, z, Block.fire.blockID);
|
||||
for(int j=-range; j<=range;j++)
|
||||
{
|
||||
for(int k=-range; k<=range; k++)
|
||||
{
|
||||
if(world.isAirBlock(x+i, y+j, z+k))
|
||||
{
|
||||
world.setBlock(x+i, y+j, z+k, Block.fire.blockID);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue