-
[1.15.2] Custom Torch not Rendering Properly
That worked perfectly! Thank you!
-
[1.15.2] Custom Torch not Rendering Properly
So I'm trying to make a custom torch block which extends TorchBlock, and used similar json as to how mojang normally implemented torches and redstone torches. However, while the model and texture work fine, Im stuck with these black squares in the model, leaving me clueless as to what I missed. Any help would be appreciated. public class ArcaneTorch extends TorchBlock { public ArcaneTorch() { super(TorchBlock.Properties.from(Blocks.TORCH)); } @OnlyIn(Dist.CLIENT) @Override public void animateTick(BlockState stateIn, World worldIn, BlockPos pos, Random rand) { double d0 = (double)pos.getX() + 0.5D; double d1 = (double)pos.getY() + 0.7D; double d2 = (double)pos.getZ() + 0.5D; worldIn.addParticle(ParticleTypes.END_ROD, d0, d1, d2, 0.0D, 0.0D, 0.0D); } } This is the Torch class in question.
-
[1.12] Forge Energy output not working properly
Nevermind, I fixed it. The issue was simply that using an outdated world mildly broke the output. Any new world seems to make it work no clue why it happened but whatever ig
-
[1.12] Forge Energy output not working properly
This TileEntity Constantly just outputs energy into nothing despite there being no tile entity to the east that can receive energy. Why is this happening and how can i Fix public final int TRANSFER_AMOUNT = 60; TileEntity TE = this; @Override public void update() { if (getWorld() != null && !getWorld().isRemote && getWorld().getTileEntity(getPos().offset(EnumFacing.EAST)) != null) { IEnergyStorage storages = getWorld().getTileEntity(getPos().offset(EnumFacing.EAST)) .getCapability(CapabilityEnergy.ENERGY, EnumFacing.EAST.getOpposite()); if (storages != null && storages.canReceive() && energy > 0) { storage.extractEnergy(storages.receiveEnergy(TRANSFER_AMOUNT, false), false); this.energy = storage.getEnergyStored(); } } if (!handler.getStackInSlot(0).isEmpty() && isItemFuel(handler.getStackInSlot(0))) { cookTime++; cookMax = (getFuelValue(handler.getStackInSlot(0)) / 10); if (cookTime == cookMax) { energy=storage.setEnergyStored(storage.getEnergyStored()+getFuelValue(handler.getStackInSlot(0)), false); handler.getStackInSlot(0).shrink(1); cookTime = 0; //TODO FIX THE GODDAMN ENERGY TRANSFER } } else cookTime = 0; }
-
- delete this
-
willko changed their profile photo
-
[1.12] Rendering NBT Itemstack above TileEntity
This is huge! Cheers!
-
[1.12] Rendering NBT Itemstack above TileEntity
I have a block, Pedestal, which is able to store an itemstack inside of it. What I wish to do is to have the stored itemstack render above it, like a table holding an object. I haven't modded since 1.3 so I'm curious as to how i should go about implementing this. Any appropriate threads are appreciated as well.
IPS spam blocked by CleanTalk.