Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

willko

Members
  • Joined

  • Last visited

  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. willko started following LexManos
  6. willko posted a topic in Modder Support
    s
  7. willko changed their profile photo
  8. 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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.