mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
some more texture and polishing work for the new features
This commit is contained in:
parent
d0041573ae
commit
5ed6598b4d
6 changed files with 23 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
package de.ellpeck.naturesaura.blocks;
|
package de.ellpeck.naturesaura.blocks;
|
||||||
|
|
||||||
import de.ellpeck.naturesaura.NaturesAura;
|
import de.ellpeck.naturesaura.NaturesAura;
|
||||||
|
import de.ellpeck.naturesaura.api.NaturesAuraAPI;
|
||||||
import de.ellpeck.naturesaura.api.render.IVisualizable;
|
import de.ellpeck.naturesaura.api.render.IVisualizable;
|
||||||
import de.ellpeck.naturesaura.blocks.tiles.TileEntityChunkLoader;
|
import de.ellpeck.naturesaura.blocks.tiles.TileEntityChunkLoader;
|
||||||
import net.minecraft.block.SoundType;
|
import net.minecraft.block.SoundType;
|
||||||
|
@ -12,6 +13,7 @@ import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.EnumFacing;
|
import net.minecraft.util.EnumFacing;
|
||||||
import net.minecraft.util.math.AxisAlignedBB;
|
import net.minecraft.util.math.AxisAlignedBB;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.util.math.MathHelper;
|
||||||
import net.minecraft.world.IBlockAccess;
|
import net.minecraft.world.IBlockAccess;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.ForgeChunkManager;
|
import net.minecraftforge.common.ForgeChunkManager;
|
||||||
|
@ -21,6 +23,7 @@ import net.minecraftforge.fml.relauncher.Side;
|
||||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
public class BlockChunkLoader extends BlockContainerImpl implements IVisualizable {
|
public class BlockChunkLoader extends BlockContainerImpl implements IVisualizable {
|
||||||
|
|
||||||
|
@ -57,6 +60,20 @@ public class BlockChunkLoader extends BlockContainerImpl implements IVisualizabl
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
|
public void randomDisplayTick(IBlockState stateIn, World worldIn, BlockPos pos, Random rand) {
|
||||||
|
TileEntity tile = worldIn.getTileEntity(pos);
|
||||||
|
if (tile instanceof TileEntityChunkLoader) {
|
||||||
|
int range = ((TileEntityChunkLoader) tile).range();
|
||||||
|
for (int i = MathHelper.ceil(range / 8F); i > 0; i--) {
|
||||||
|
NaturesAuraAPI.instance().spawnMagicParticle(
|
||||||
|
pos.getX() + worldIn.rand.nextFloat(), pos.getY() + worldIn.rand.nextFloat(), pos.getZ() + worldIn.rand.nextFloat(),
|
||||||
|
0, 0, 0, 0xa12dff, 1F + worldIn.rand.nextFloat(), 100, 0, false, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@SideOnly(Side.CLIENT)
|
@SideOnly(Side.CLIENT)
|
||||||
public int getVisualizationColor(World world, BlockPos pos) {
|
public int getVisualizationColor(World world, BlockPos pos) {
|
||||||
|
|
|
@ -9,6 +9,7 @@ import de.ellpeck.naturesaura.reg.IModItem;
|
||||||
import de.ellpeck.naturesaura.reg.IModelProvider;
|
import de.ellpeck.naturesaura.reg.IModelProvider;
|
||||||
import de.ellpeck.naturesaura.reg.ModRegistry;
|
import de.ellpeck.naturesaura.reg.ModRegistry;
|
||||||
import net.minecraft.block.BlockRailBase;
|
import net.minecraft.block.BlockRailBase;
|
||||||
|
import net.minecraft.block.SoundType;
|
||||||
import net.minecraft.block.properties.IProperty;
|
import net.minecraft.block.properties.IProperty;
|
||||||
import net.minecraft.block.properties.PropertyEnum;
|
import net.minecraft.block.properties.PropertyEnum;
|
||||||
import net.minecraft.block.state.BlockStateContainer;
|
import net.minecraft.block.state.BlockStateContainer;
|
||||||
|
@ -41,6 +42,8 @@ public class BlockDimensionRail extends BlockRailBase implements IModItem, ICrea
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.goalDim = goalDim.getId();
|
this.goalDim = goalDim.getId();
|
||||||
this.canUseDims = canUseDims;
|
this.canUseDims = canUseDims;
|
||||||
|
this.setHardness(0.8F);
|
||||||
|
this.setSoundType(SoundType.METAL);
|
||||||
|
|
||||||
ModRegistry.add(this);
|
ModRegistry.add(this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,9 @@ tile.naturesaura.ender_crate.name=Ender Crate
|
||||||
tile.naturesaura.powder_placer.name=Powder Manipulator
|
tile.naturesaura.powder_placer.name=Powder Manipulator
|
||||||
tile.naturesaura.firework_generator.name=Firecracker Gaze
|
tile.naturesaura.firework_generator.name=Firecracker Gaze
|
||||||
tile.naturesaura.chunk_loader.name=World Eye
|
tile.naturesaura.chunk_loader.name=World Eye
|
||||||
|
tile.naturesaura.dimension_rail_overworld.name=Rail of the Overworld
|
||||||
|
tile.naturesaura.dimension_rail_end.name=Rail of the End
|
||||||
|
tile.naturesaura.dimension_rail_nether.name=Rail of the Nether
|
||||||
|
|
||||||
item.naturesaura.eye.name=Environmental Eye
|
item.naturesaura.eye.name=Environmental Eye
|
||||||
item.naturesaura.eye_improved.name=Environmental Ocular
|
item.naturesaura.eye_improved.name=Environmental Ocular
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 347 B |
Binary file not shown.
After Width: | Height: | Size: 346 B |
Binary file not shown.
After Width: | Height: | Size: 349 B |
Loading…
Reference in a new issue