Compare commits
2 Commits
488c37049f
...
e98b44453d
Author | SHA1 | Date | |
---|---|---|---|
e98b44453d | |||
ee7f8e481c |
@ -6,11 +6,11 @@ import com.thebrokenrail.energonrelics.block.DefensiveLaserBlock;
|
||||
import com.thebrokenrail.energonrelics.block.HolographicSkyBlock;
|
||||
import com.thebrokenrail.energonrelics.block.LightningRodBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.ForcefieldProjectorBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.IndustrialLaserProjectorBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.IndustrialLaserBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.RepulsorBeamBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.TractorBeamBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.TractorBeamProjectorBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.laser.IndustrialLaserProjectorBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.laser.IndustrialLaserBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.beam.RepulsorBeamBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.beam.TractorBeamBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.beam.TractorBeamProjectorBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.ForcefieldBlock;
|
||||
import com.thebrokenrail.energonrelics.block.misc.VeridiumBlockBlock;
|
||||
import com.thebrokenrail.energonrelics.block.structure.StructureGeneratorBlock;
|
||||
|
@ -1,7 +1,8 @@
|
||||
package com.thebrokenrail.energonrelics.block.entity.forcefield;
|
||||
package com.thebrokenrail.energonrelics.block.entity.forcefield.laser;
|
||||
|
||||
import com.thebrokenrail.energonrelics.EnergonRelics;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.IndustrialLaserProjectorBlock;
|
||||
import com.thebrokenrail.energonrelics.block.entity.forcefield.FieldProjectorBlockEntity;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.laser.IndustrialLaserProjectorBlock;
|
||||
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
@ -16,6 +17,7 @@ import net.minecraft.world.explosion.Explosion;
|
||||
public class IndustrialLaserBlockEntity extends FieldProjectorBlockEntity {
|
||||
private BlockPos targetPos;
|
||||
private BlockState targetState;
|
||||
|
||||
private int progress = 0;
|
||||
|
||||
public IndustrialLaserBlockEntity(BlockEntityType<?> type) {
|
||||
@ -52,7 +54,7 @@ public class IndustrialLaserBlockEntity extends FieldProjectorBlockEntity {
|
||||
} else {
|
||||
Vec3d vec = Vec3d.ofCenter(targetPos);
|
||||
|
||||
((ServerWorld) getWorld()).spawnParticles(ParticleTypes.FLAME, vec.getX(), vec.getY(), vec.getZ(), 2, 0.3f, 0.3f, 0.3f, 0f);
|
||||
((ServerWorld) getWorld()).spawnParticles(ParticleTypes.FLAME, vec.getX(), vec.getY(), vec.getZ(), 1, 0.4f, 0.4f, 0.4f, 0f);
|
||||
|
||||
progress++;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.thebrokenrail.energonrelics.block.entity.forcefield;
|
||||
package com.thebrokenrail.energonrelics.block.entity.forcefield.laser;
|
||||
|
||||
import com.thebrokenrail.energonrelics.EnergonRelics;
|
||||
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
|
||||
@ -37,6 +37,7 @@ public class IndustrialLaserRegistry {
|
||||
}
|
||||
|
||||
static {
|
||||
add(Blocks.COAL_ORE, Items.COAL, Blocks.COAL_BLOCK);
|
||||
add(Blocks.IRON_ORE, Items.IRON_INGOT, Blocks.IRON_BLOCK);
|
||||
add(Blocks.GOLD_ORE, Items.GOLD_INGOT, Blocks.GOLD_BLOCK);
|
||||
add(Blocks.DIAMOND_ORE, Items.DIAMOND, Blocks.DIAMOND_BLOCK);
|
@ -1,4 +1,4 @@
|
||||
package com.thebrokenrail.energonrelics.block.forcefield;
|
||||
package com.thebrokenrail.energonrelics.block.forcefield.beam;
|
||||
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.util.BeamBlock;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.thebrokenrail.energonrelics.block.forcefield;
|
||||
package com.thebrokenrail.energonrelics.block.forcefield.beam;
|
||||
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.util.BeamBlock;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.thebrokenrail.energonrelics.block.forcefield;
|
||||
package com.thebrokenrail.energonrelics.block.forcefield.beam;
|
||||
|
||||
import com.thebrokenrail.energonrelics.EnergonRelics;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.util.FieldProjectorBlock;
|
@ -1,4 +1,4 @@
|
||||
package com.thebrokenrail.energonrelics.block.forcefield;
|
||||
package com.thebrokenrail.energonrelics.block.forcefield.laser;
|
||||
|
||||
import com.thebrokenrail.energonrelics.EnergonRelics;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.util.AbstractFieldBlock;
|
@ -1,6 +1,6 @@
|
||||
package com.thebrokenrail.energonrelics.block.forcefield;
|
||||
package com.thebrokenrail.energonrelics.block.forcefield.laser;
|
||||
|
||||
import com.thebrokenrail.energonrelics.block.entity.forcefield.IndustrialLaserBlockEntity;
|
||||
import com.thebrokenrail.energonrelics.block.entity.forcefield.laser.IndustrialLaserBlockEntity;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.util.FieldProjectorBlock;
|
||||
import net.minecraft.block.entity.BlockEntity;
|
||||
import net.minecraft.block.entity.BlockEntityType;
|
@ -1,7 +1,7 @@
|
||||
package com.thebrokenrail.energonrelics.block.forcefield.util;
|
||||
|
||||
import com.thebrokenrail.energonrelics.EnergonRelics;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.TractorBeamProjectorBlock;
|
||||
import com.thebrokenrail.energonrelics.block.forcefield.beam.TractorBeamProjectorBlock;
|
||||
import com.thebrokenrail.energonrelics.config.HardcodedConfig;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.ShapeContext;
|
||||
|
Reference in New Issue
Block a user