Jump to content

Silly511

Members
  • Posts

    176
  • Joined

Everything posted by Silly511

  1. Subscribe to RenderPlayerEvent.Pre and RenderPlayerEvent.Post and use GlStateManager.disableDepth()in Pre andGlStateManager.enableDepth() in Post.
  2. I think that's the issue, I found this in fml-junk-earlystartup.log: [15:59:06] [Server thread/DEBUG] [FML]: Bar Finished: ServerStarted took 0.001s [15:59:06] [Netty Local Client IO #1/TRACE] [FML]: Handshake channel activating [15:59:06] [Netty Local Client IO #1/DEBUG] [FML]: FMLHandshakeClientState: null->FMLHandshakeClientState$1:START [15:59:06] [Netty Local Client IO #1/DEBUG] [FML]: Next: HELLO [15:59:06] [Server thread/TRACE] [FML]: Handshake channel activating [15:59:06] [Server thread/DEBUG] [FML]: FMLHandshakeServerState: null->FMLHandshakeServerState$1:START [15:59:06] [Netty Local Client IO #1/DEBUG] [FML]: Server FML protocol version 2, 4 byte dimension received 0 [15:59:06] [Netty Local Client IO #1/DEBUG] [FML]: FMLHandshakeClientState: $ServerHello->FMLHandshakeClientState$2:HELLO [15:59:06] [Netty Local Client IO #1/INFO] [FML]: Server protocol version 2 [15:59:06] [Netty Local Client IO #1/DEBUG] [FML]: Received override dimension 0 [15:59:06] [Netty Local Client IO #1/DEBUG] [FML]: Next: WAITINGSERVERDATA [15:59:06] [Netty Server IO #3/DEBUG] [FML]: FMLHandshakeServerState: $ClientHello->FMLHandshakeServerState$1:START [15:59:06] [Netty Server IO #3/DEBUG] [FML]: Next: HELLO [15:59:06] [Netty Server IO #3/DEBUG] [FML]: FMLHandshakeServerState: $ModList:4 mods->FMLHandshakeServerState$2:HELLO [15:59:06] [Netty Server IO #3/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected] [15:59:06] [Netty Server IO #3/DEBUG] [FML]: Next: WAITINGCACK [15:59:06] [Netty Local Client IO #1/DEBUG] [FML]: Server FML protocol version 2, 4 byte dimension received 0 [15:59:06] [Netty Local Client IO #1/DEBUG] [FML]: FMLHandshakeClientState: $ServerHello->FMLHandshakeClientState$3:WAITINGSERVERDATA [15:59:06] [Netty Local Client IO #1/ERROR] [FML]: HandshakeMessageHandler exception java.lang.ClassCastException: net.minecraftforge.fml.common.network.handshake.FMLHandshakeMessage$ServerHello cannot be cast to net.minecraftforge.fml.common.network.handshake.FMLHandshakeMessage$ModList at net.minecraftforge.fml.common.network.handshake.FMLHandshakeClientState$3.accept(FMLHandshakeClientState.java:99) ~[FMLHandshakeClientState$3.class:?] at net.minecraftforge.fml.common.network.handshake.FMLHandshakeClientState$3.accept(FMLHandshakeClientState.java:94) ~[FMLHandshakeClientState$3.class:?] at net.minecraftforge.fml.common.network.handshake.HandshakeMessageHandler.channelRead0(HandshakeMessageHandler.java:48) ~[HandshakeMessageHandler.class:?] at net.minecraftforge.fml.common.network.handshake.HandshakeMessageHandler.channelRead0(HandshakeMessageHandler.java:30) ~[HandshakeMessageHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) ~[SimpleChannelInboundHandler.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) [MessageToMessageDecoder.class:4.1.9.Final] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [MessageToMessageCodec.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [AbstractChannelHandlerContext.class:4.1.9.Final] at net.minecraftforge.fml.common.network.handshake.ChannelRegistrationHandler.channelRead0(ChannelRegistrationHandler.java:53) [ChannelRegistrationHandler.class:?] at net.minecraftforge.fml.common.network.handshake.ChannelRegistrationHandler.channelRead0(ChannelRegistrationHandler.java:36) [ChannelRegistrationHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [SimpleChannelInboundHandler.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) [DefaultChannelPipeline$HeadContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) [DefaultChannelPipeline.class:4.1.9.Final] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:274) [EmbeddedChannel.class:4.1.9.Final] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleClientSideCustomPacket(NetworkDispatcher.java:387) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:271) [NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:74) [NetworkDispatcher.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) [SimpleChannelInboundHandler.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) [DefaultChannelPipeline$HeadContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) [DefaultChannelPipeline.class:4.1.9.Final] at io.netty.channel.local.LocalChannel.finishPeerRead0(LocalChannel.java:443) [LocalChannel.class:4.1.9.Final] at io.netty.channel.local.LocalChannel.access$500(LocalChannel.java:49) [LocalChannel.class:4.1.9.Final] at io.netty.channel.local.LocalChannel$5.run(LocalChannel.java:397) [LocalChannel$5.class:4.1.9.Final] at io.netty.channel.DefaultEventLoop.run(DefaultEventLoop.java:54) [DefaultEventLoop.class:4.1.9.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [SingleThreadEventExecutor$5.class:4.1.9.Final] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74] [15:59:06] [Netty Local Client IO #1/ERROR] [FML]: NetworkDispatcher exception java.lang.ClassCastException: net.minecraftforge.fml.common.network.handshake.FMLHandshakeMessage$ServerHello cannot be cast to net.minecraftforge.fml.common.network.handshake.FMLHandshakeMessage$ModList at net.minecraftforge.fml.common.network.handshake.FMLHandshakeClientState$3.accept(FMLHandshakeClientState.java:99) ~[FMLHandshakeClientState$3.class:?] at net.minecraftforge.fml.common.network.handshake.FMLHandshakeClientState$3.accept(FMLHandshakeClientState.java:94) ~[FMLHandshakeClientState$3.class:?] at net.minecraftforge.fml.common.network.handshake.HandshakeMessageHandler.channelRead0(HandshakeMessageHandler.java:48) ~[HandshakeMessageHandler.class:?] at net.minecraftforge.fml.common.network.handshake.HandshakeMessageHandler.channelRead0(HandshakeMessageHandler.java:30) ~[HandshakeMessageHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) ~[SimpleChannelInboundHandler.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) ~[AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) ~[MessageToMessageDecoder.class:4.1.9.Final] at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) ~[MessageToMessageCodec.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) ~[AbstractChannelHandlerContext.class:4.1.9.Final] at net.minecraftforge.fml.common.network.handshake.ChannelRegistrationHandler.channelRead0(ChannelRegistrationHandler.java:53) ~[ChannelRegistrationHandler.class:?] at net.minecraftforge.fml.common.network.handshake.ChannelRegistrationHandler.channelRead0(ChannelRegistrationHandler.java:36) ~[ChannelRegistrationHandler.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) ~[SimpleChannelInboundHandler.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) ~[AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) ~[AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) ~[AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) ~[DefaultChannelPipeline$HeadContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) ~[DefaultChannelPipeline.class:4.1.9.Final] at io.netty.channel.embedded.EmbeddedChannel.writeInbound(EmbeddedChannel.java:274) ~[EmbeddedChannel.class:4.1.9.Final] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.handleClientSideCustomPacket(NetworkDispatcher.java:387) ~[NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:271) ~[NetworkDispatcher.class:?] at net.minecraftforge.fml.common.network.handshake.NetworkDispatcher.channelRead0(NetworkDispatcher.java:74) ~[NetworkDispatcher.class:?] at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) ~[SimpleChannelInboundHandler.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334) [DefaultChannelPipeline$HeadContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) [AbstractChannelHandlerContext.class:4.1.9.Final] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926) [DefaultChannelPipeline.class:4.1.9.Final] at io.netty.channel.local.LocalChannel.finishPeerRead0(LocalChannel.java:443) [LocalChannel.class:4.1.9.Final] at io.netty.channel.local.LocalChannel.access$500(LocalChannel.java:49) [LocalChannel.class:4.1.9.Final] at io.netty.channel.local.LocalChannel$5.run(LocalChannel.java:397) [LocalChannel$5.class:4.1.9.Final] at io.netty.channel.DefaultEventLoop.run(DefaultEventLoop.java:54) [DefaultEventLoop.class:4.1.9.Final] at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [SingleThreadEventExecutor$5.class:4.1.9.Final] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74] [15:59:06] [Server thread/DEBUG] [FML]: Next: HELLO [15:59:06] [Netty Local Client IO #1/DEBUG] [FML]: FMLHandshakeClientState: $ModList:4 mods->FMLHandshakeClientState$3:WAITINGSERVERDATA [15:59:06] [Netty Local Client IO #1/DEBUG] [FML]: Next: PENDINGCOMPLETE
  3. After I updated from forge 1.11.2 to 1.12, some of my worlds will get stuck at the 0% screen when trying to load them and I will have to force quit minecraft. Upon restarting minecraft the world will load fine but all my player data will be gone. My position, inventory, spawn point, etc. will be reset but the rest of the world will be intact. Downgrading back to 1.11.2 fixes the issue as long as I restore the world from a backup. Does anyone have an idea of why this could be happening? I'm running minecraft forge 14.21.1.2443 from the vanilla launcher without any mods installed. Here's the log.
  4. In your class: public static final FloatBuffer projection = GLAllocation.createDirectFloatBuffer(16); public static final FloatBuffer modelview = GLAllocation.createDirectFloatBuffer(16); And then in your method: GlStateManager.getFloat(GL11.GL_PROJECTION_MATRIX, projection); GlStateManager.getFloat(GL11.GL_MODELVIEW_MATRIX, modelview); Matrix4f projectionMatrix = (Matrix4f) new Matrix4f().load(projection.asReadOnlyBuffer()); Matrix4f modelViewMatrix = (Matrix4f) new Matrix4f().load(modelview.asReadOnlyBuffer()); Matrix4f result = Matrix4f.mul(modelViewMatrix, projectionMatrix, null);
  5. To remove potion icons from the HUD subscribe to RenderGameOverlayEvent.Pre, check if the type is ElementType.POTION_ICONS and cancel the event. You can see more about events here. I'm not sure how you would remove potion icons from inventory, but if you want to stop them from shifting the inventory over you can subscribe to GuiScreenEvent.PotionShiftEvent and cancel it.
  6. Call drawDefaultBackground() at the top of your render method.
  7. EntityPlayer#capabilities.isCreativeMode should tell you if the player is in creative for spectator mode.
  8. You need to put GlStateManager.popMatrix() at the end of your render method.
  9. How long are you giving it? I have allocated 2GB and decompileMc still takes 30 minutes or so. Just try waiting a couple of hours and if it's still is on decompileMc then you'll know for sure there's some type of problem.
  10. I have a gui with a multi-line textbox that works when typing text, deleting text, etc. but the cursor behaves very weirdly. When I press the right arrow key and I'm at the end of a line it appears to work(as in the cursor doesn't move past the end of the line) but if I press the right arrow key a bunch of times, and then press the left arrow key, the cursor doesn't move as if the cursor position is off the end of the line but the cursor isn't rendered off the line. Same thing happens at the beginning of a line, when I press the left arrow key it appears to stay but if I press the right arrow key the cursor doesn't move. If I put print statements before I change the cursorX and after, it seems cursorX is not going higher than or lower than it's supposed to but instead it's setting itself to back one and then forward one. I have no clue what is happening, or even how to explain it in a good way. Heres my keyTyped method in my GUI class: @Override protected void keyTyped(char typedChar, int keyCode) throws IOException { if (keyCode == Keyboard.KEY_ESCAPE) { this.mc.displayGuiScreen(null); } else if (keyCode == Keyboard.KEY_UP && this.cursorY > 0) { this.cursorY--; this.cursorX = MathHelper.clamp(this.cursorX, 0, this.text.get(cursorY).length()); } else if (keyCode == Keyboard.KEY_DOWN && this.cursorY < this.text.size() - 1) { this.cursorY++; this.cursorX = MathHelper.clamp(this.cursorX, 0, this.text.get(cursorY).length()); } else if (keyCode == Keyboard.KEY_LEFT && this.cursorX > 0) { this.cursorX--; } else if (keyCode == Keyboard.KEY_RIGHT && this.cursorX < this.text.get(cursorY).length()) { this.cursorX++; } else if (keyCode == Keyboard.KEY_RETURN) { String line = text.get(cursorY); text.set(cursorY, line.substring(0, cursorX)); text.add(cursorY + 1, line.substring(cursorX, line.length())); cursorY++; cursorX = 0; } else if (keyCode == Keyboard.KEY_BACK && cursorX > 0) { cursorX--; text.set(cursorY, new StringBuilder(text.get(cursorY)).deleteCharAt(cursorX).toString()); } else if (ChatAllowedCharacters.isAllowedCharacter(typedChar)) { String line = text.get(cursorY); if (line.length() + 1 > 255) return; text.set(cursorY, new StringBuilder(line).insert(cursorX, typedChar).toString()); cursorX++; } } What's really odd is deleting works perfectly fine, it's only the arrow keys that don't work. Heres my entire GUI class if you need it:
  11. Huh that's odd, because I have mine named en_US.lang and everything is localized properly.
  12. Thank you that worked. I was trying to avoid offsetting it a bit because I thought if you looked at the model top-down you could see a tiny gap, but you really can't see anything at all.
  13. Ok that makes sense. So there really isn't a good way to solve this?
  14. I have a block model that renders an overlay onto the block beside it. The overlay functions perfectly when both block blocks are in the same chunk, but when one of the blocks is in another chunk as the first one then the overlay and the block start to z-fight. Here's an image of what I'm talking about: The black block renders the overlay onto the cobblestone block to the left of it. As you can see when both blocks are in the same chunk they're fine, but when they're in different chunks the cobblestone z-fights the overlay. I think the reason this happens is because each chunk is drawn separately, and two quads in the same draw won't z-fight. But when a quad from one draw is in the same position as a quad from another draw then they z-fight. Is this theory correct? And if it is, is there a way to solve this?
  15. Added buffer.setTranslation(x - pos.getX(), y - pos.getY() + 1, z - pos.getZ()); Still nothing. I've looked all around and dug underneath the block and I don't see anything.
  16. Here's my TESR class: public class AuraPylonTESR extends TileEntitySpecialRenderer<TileAuraPylon> { @Override public void renderTileEntityFast(TileAuraPylon te, double x, double y, double z, float partialTicks, int destroyStage, VertexBuffer buffer) { BlockPos pos = te.getPos(); buffer.setTranslation(pos.getX(), pos.getY() + 1, pos.getZ()); buffer.pos(0, 0, 0).color(1, 1, 1, 1).tex(0, 0).lightmap(0, 0).endVertex(); buffer.pos(0, 1, 0).color(1, 1, 1, 1).tex(0, 1).lightmap(0, 0).endVertex(); buffer.pos(1, 1, 0).color(1, 1, 1, 1).tex(1, 1).lightmap(0, 0).endVertex(); buffer.pos(1, 0, 0).color(1, 1, 1, 1).tex(1, 0).lightmap(0, 0).endVertex(); } } But nothing ever renders. I've tried looking at my block from all angles, but I can never see anything being rendered. renderTileEntityFast() is definitely being called, because I can put System.out.println("rendering"); in renderTileEntityFast() and "rendering" is printed continually in the console. Why is nothing rendering?
  17. Just a quick tip: you don't have to put new Object[0] . Those are varargs and can just leave it blank.
  18. What's wrong with your shelf code? All you have to do is replace GL11 calls with their respective GLStateManager methods.
  19. Get rid of that ridiculously weird texture getting stuff, and use Minecraft#getRenderItem().renderModel(ItemStack item, ItemCameraTransforms.TransformType type) instead. Pass ItemCameraTransforms.TransformType.NONE for the type and the item in your entity's inventory for the item stack.
  20. For registering and playing sounds take a look at this: https://mcforge.readthedocs.io/en/latest/effects/sounds.
  21. I'm already doing that. My death code works fine, I just need to get the main mob from a multipart mob part. Looking into the code some more I think I need to submit a pull request for an IMultipartEntityPart interface which multipart mob parts could implement and have a getMainEntity method.
  22. That would work for most things, but the death message would be "ENTITY fell out of the world". I want to attack with a custom damage source. I can make my custom damage source ignore creative which would work for most things but it still won't work work if the death event is canceled. I'm pretty sure the only way to do this is directly modifying the entity's health.
×
×
  • Create New...

Important Information

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