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.

DeaSTl

Members
  • Joined

  • Last visited

  1. Actually, I think you should add elephants to the game and make it so that they can get into boats.
  2. You know, that's a good point now that you say that.
  3. I've just been going off what I've seen in other people's source code.
  4. @SideOnly(Side.CLIENT) public class RenderStupidTNT extends RenderTNTPrimed { public static final IRenderFactory<EntityStupidTNT> FACTORY = new Factory(); public static final ResourceLocation texture = new ResourceLocation("eib:stupid_tnt"); public RenderStupidTNT(RenderManager renderManagerIn) { super(renderManagerIn); } private static class Factory implements IRenderFactory<EntityStupidTNT> { @Override public Render<? super EntityStupidTNT> createRenderFor(RenderManager manager) { return new RenderStupidTNT(manager); } } @Override protected ResourceLocation getEntityTexture(EntityTNTPrimed entity) { return texture; } } This is my Render class
  5. Okay, I setup the Renderer that extends RenderTNTPrimed but it still seems to be spawning the tnt but I see a part in RenderTNTPrimed.java line 43 this.bindEntityTexture(entity); So that makes be believe that it's trying extract the texture some how.
  6. https://github.com/DeaSTL/EverythingIsBad I'm not getting any errors in the console and I'm pretty sure I setup the entity and registered it correctly. If you have any idea what could be the issue then please reply below.
  7. Thank, you so much, I think it works now. But i'm just wondering why setVelocity is client side only.
  8. So do I need to make a custom entity for this block when it explodes. Also when I did try to make a entity that extends EntityTNTPrimed, I was confused on weather I need to register a custom entity or if it's just registered when it's spawned. there is a class in com.dna.everythingisbad.entity
  9. java.util.concurrent.ExecutionException: net.minecraft.util.ReportedException: Exception while updating neighbours at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_191] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_191] at net.minecraft.util.Util.runTask(Util.java:54) [Util.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:798) [MinecraftServer.class:?] at net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities(DedicatedServer.java:415) [DedicatedServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:743) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:592) [MinecraftServer.class:?] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191] Caused by: net.minecraft.util.ReportedException: Exception while updating neighbours at net.minecraft.world.World.neighborChanged(World.java:647) ~[World.class:?] at net.minecraft.world.World.notifyNeighborsOfStateChange(World.java:567) ~[World.class:?] at net.minecraft.world.World.notifyNeighborsRespectDebug(World.java:507) ~[World.class:?] at net.minecraft.world.World.markAndNotifyBlock(World.java:439) ~[World.class:?] at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:941) ~[ForgeHooks.class:?] at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:200) ~[ItemStack.class:?] at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:507) ~[PlayerInteractionManager.class:?] at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:769) ~[NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:68) ~[CPacketPlayerTryUseItemOnBlock.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:13) ~[CPacketPlayerTryUseItemOnBlock.class:?] at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) ~[PacketThreadUtil$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_191] at net.minecraft.util.Util.runTask(Util.java:53) ~[Util.class:?] ... 5 more Caused by: java.lang.NoSuchMethodError: net.minecraft.entity.item.EntityTNTPrimed.setVelocity(DDD)V at com.dna.everythingisbad.block.BlockStupidTNT.explode(BlockStupidTNT.java:99) ~[BlockStupidTNT.class:?] at net.minecraft.block.BlockTNT.onBlockDestroyedByPlayer(BlockTNT.java:82) ~[BlockTNT.class:?] at net.minecraft.block.BlockTNT.neighborChanged(BlockTNT.java:59) ~[BlockTNT.class:?] at net.minecraft.block.state.BlockStateContainer$StateImplementation.neighborChanged(BlockStateContainer.java:508) ~[BlockStateContainer$StateImplementation.class:?] at net.minecraft.world.World.neighborChanged(World.java:626) ~[World.class:?] at net.minecraft.world.World.notifyNeighborsOfStateChange(World.java:567) ~[World.class:?] at net.minecraft.world.World.notifyNeighborsRespectDebug(World.java:507) ~[World.class:?] at net.minecraft.world.World.markAndNotifyBlock(World.java:439) ~[World.class:?] at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:941) ~[ForgeHooks.class:?] at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:200) ~[ItemStack.class:?] at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:507) ~[PlayerInteractionManager.class:?] at net.minecraft.network.NetHandlerPlayServer.processTryUseItemOnBlock(NetHandlerPlayServer.java:769) ~[NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:68) ~[CPacketPlayerTryUseItemOnBlock.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:13) ~[CPacketPlayerTryUseItemOnBlock.class:?] at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:21) ~[PacketThreadUtil$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_191] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_191] at net.minecraft.util.Util.runTask(Util.java:53) ~[Util.class:?] ... 5 more I'm relatively new to forge 1.12 and sort of new to minecraft modding in general. I wanted to make this mod so I could figure out how it all works. I'm having trouble figuring out why it throws a NoSuchMethod Exception. Does the server even keep track of ticking entities? Here is the full project https://github.com/DeaSTL/EverythingIsBad
  10. @Override public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) { ItemStack DenseIronSword = new ItemStack(SwordModMain.DenseIronSword); DenseIronSword.addEnchantment(Enchantment.sharpness, 3); worldObj.spawnEntityInWorld(DenseIronSword) return null; }
  11. the problem with that is it looses it's enchantment http://prntscr.com/dv0var
  12. @Override public Item getItemDropped(int p_149650_1_, Random p_149650_2_, int p_149650_3_) { ItemStack DenseIronSword = new ItemStack(SwordModMain.DenseIronSword); DenseIronSword.addEnchantment(Enchantment.sharpness, 3); return DenseIronSword; } This is in a block class
  13. @SubscribeEvent(priority = EventPriority.NORMAL) public void OnPlayerPickUpItem(EntityItemPickupEvent e){ System.out.println("You have picked up an item"); World.createExplosion(e.item, e.item.lastTickPosX,e.item.lastTickPosY,e.item.lastTickPosZ, 4.5F, true); }

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.