Jump to content

willko

Members
  • Posts

    8
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

willko's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. That worked perfectly! Thank you!
  2. 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.
  3. 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
  4. 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; }
  5. s
  6. This is huge! Cheers!
  7. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.