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.

knight37x

Members
  • Joined

  • Last visited

Everything posted by knight37x

  1. You probably did think at this but sometimes it's worth checking the little but possible issues: Did you remember sneaking while clicking? I think in your BlockTube class you want the player to sneak while clicking.
  2. You are right! I forgot to mention that everything's fine in survival mode it's just shaking in creative mode
  3. My problem is this: if I right click at a block with my item in hand it always goes up and down. The only way I found to prevent this is to set the item in use but then the problem is you are as slow as while eating and I want the player to be able to run while right clicking. My question: is there an other way to prevent this? Thanks for any help!
  4. Can anyone help me how to give models the enchanting glow effect? By the way, I am talking about item models the player carries in his hand. I also can't find the solution in minecraft source code bacause the used technic only works for 2D items. Item rendering source code can be found at: https://github.com/knight37x/knight37x/blob/master/lance/RenderLance.java Tanks for your help!
  5. could you specify what in buildcraft? Do you want a model in players hand or a block or.... maybe even a picture...
  6. Thanks sirgingalot and all who tried to help me! I also had a sided error. But the error message was a bit confusing (as I think) so it was hard to figgure it out.
  7. I've got one problem: It doesn't work on server. Yea, it works fine on singleplayer but testing on server produces that error: [18:24:06] [Netty IO #2/ERROR] [FML]: NetworkDispatcher exception java.io.IOException: Eine vorhandene Verbindung wurde vom Remotehost geschlossen at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[?:1.7.0_51] at sun.nio.ch.SocketDispatcher.read(Unknown Source) ~[?:1.7.0_51] at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) ~[?:1.7.0_51] at sun.nio.ch.IOUtil.read(Unknown Source) ~[?:1.7.0_51] at sun.nio.ch.SocketChannelImpl.read(Unknown Source) ~[?:1.7.0_51] at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:436) ~[unpooledUnsafeDirectByteBuf.class:?] at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:870) ~[AbstractByteBuf.class:?] at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:208) ~[NioSocketChannel.class:?] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:87) [AbstractNioByteChannel$NioByteUnsafe.class:?] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:480) [NioEventLoop.class:?] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:447) [NioEventLoop.class:?] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:341) [NioEventLoop.class:?] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101) [singleThreadEventExecutor$2.class:?] at java.lang.Thread.run(Unknown Source) [?:1.7.0_51] [18:24:06] [server thread/INFO]: Player949 lost connection: TranslatableComponent{key='disconnect.genericReason', args=[internal Exception: java.io.IOException: Eine vorhandene Verbindung wurde vom Remotehost geschlossen], siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}} [18:24:06] [server thread/INFO]: Player949 left the game client closes and server reports the same message as eclipse my @Mod class contains: @EventHandler public void serverLoad(FMLServerStartingEvent event) { NetworkRegistry.INSTANCE.newChannel("lanceHitEntity", new PacketHandler()); NetworkRegistry.INSTANCE.newChannel("lanceHitValue", new PacketHandler()); NetworkRegistry.INSTANCE.newChannel("lanceIsForward", new PacketHandler()); } my packet handler: @Override protected void channelRead0(ChannelHandlerContext ctx, FMLProxyPacket packet) throws Exception { MinecraftServer server = MinecraftServer.getServer(); Item item = ((EntityPlayer) server.getEntityWorld().playerEntities.toArray( [packet.payload().readInt()]).getCurrentEquippedItem().getItem(); if(item instanceof ItemLance) { ItemLance lance = (ItemLance) item; if (packet.channel().equals("lanceHitEntity")) { lance.entity(packet.payload().readInt(), null, server.getEntityWorld()); } else if (packet.channel().equals("lanceHitValue")) { float value = packet.payload().readFloat(); if (lance.hitValue < value || lance.hitTime < server.getSystemTimeMillis()) { lance.hitValue = value; lance.hitTime = server.getSystemTimeMillis() + 200; } } else if (packet.channel().equals("lanceIsForward")) { lance.fwdTime = server.getSystemTimeMillis() + 200; } } } could anyone help me please? thanks a lot!
  8. I've got the same problems! Item textures, Items not popping up in creative inventory, items disappeared after logging in again ... I think it's just a problem of item registering, but i can't figgure out how to register items right. I tried GameRegistry.registerItem() and also Item.field_150901_e.func_148756() which is the same as the GameData registry I can't help myself please help!

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.