-
Bypassing DE-style armor
Is there a way to create a DamageSource that bypasses Draconic-style armor? (I have a "cast from hitpoints" mechanic in my mod and draconic style armor blocks the hp drain from that mechanic)
-
[Solved] Custom death messages for pets
You create a subclass of EntityOcelot with an overridden processInteract and replace all ocelots in the world with your ones.
-
Problem with particle coordinates
I am trying to use a particle to draw a beam from the player to the target. Instead the particle a good distance from both the player and the target: The code: @Override public void renderParticle(BufferBuilder buffer, Entity entityIn, float partialTicks, float rotationX, float rotationZ, float rotationYZ, float rotationXY, float rotationXZ) { Vec3d lookVec = Helpers.getEntityLook(Minecraft.getMinecraft().player, 1).eyePosition; drawBeam(buffer, origin, target, lookVec, 2); } public static void drawBeam(BufferBuilder buffer, Vec3d S, Vec3d E, Vec3d P, float width) { Vec3d PS = S.subtract(P); Vec3d SE = E.subtract(S); Vec3d normal = PS.crossProduct(SE).normalize(); Vec3d half = normal.scale(width); Vec3d p1 = S.add(half); Vec3d p2 = S.subtract(half); Vec3d p3 = E.add(half); Vec3d p4 = E.subtract(half); int brightness = 240; int b1 = brightness >> 16 & 65535; int b2 = brightness & 65535; buffer.pos(p1.x, p1.y, p1.z).tex(0.0D, 0.0D).lightmap(b1, b2).color(255, 255, 255, 128).endVertex(); buffer.pos(p2.x, p2.y, p2.z).tex(1.0D, 0.0D).lightmap(b1, b2).color(255, 255, 255, 128).endVertex(); buffer.pos(p3.x, p3.y, p3.z).tex(1.0D, 1.0D).lightmap(b1, b2).color(255, 255, 255, 128).endVertex(); buffer.pos(p4.x, p4.y, p4.z).tex(0.0D, 1.0D).lightmap(b1, b2).color(255, 255, 255, 128).endVertex(); }
-
[SOLVED] Dealing with malformed packets.
So if a situation is impossible save for bugs, kick.
-
[SOLVED] Dealing with malformed packets.
Sigh. 1. I know about sides, thanks. 2. The question is: If a certain kind of packet is recieved on a server, then either the mod has a bug, or the client is hacking. What should i do in such situation. I edited the OP to make it more concise.
-
[SOLVED] Dealing with malformed packets.
If a certain kind of packet is recieved on a server, then either the mod has a bug, or the client is hacking. What should the server do in such situation? Kick the player from server? Tell the player in chat that a error occured? Something entirely different?
-
[1.10.2] Jump on right click
Entities have a "motionY" field. I believe that that is what you're looking for.
-
How do you make a custom portal?
You would need to check for your structure in the world and place portal blocks inside of it. That's why vanilla portal needs to be "ignited", so the game won't need to check every block, only the one that was iginted.
-
(SOLVED) [1.12] Adding custom superflat presets
Just use access transformers and unprivate the methods.
-
Change Item name when it gets damaged.
Please show your item code. Overriding "getUnlocalizedName" is the correct way to change the name, so your code must be doing something wrong.
-
[Forge 1.11.2] Cannot open gui.
Post your block code.
-
[1.12] Any recent custom GUI tutorial for blocks?
I find your lack of Google-fu disturbing: https://wiki.mcjty.eu/modding/index.php/GUI-1.12
-
Forge 1.11.2 crashes
Attach the logs or something
-
[SOLVED... KIND OF]Stencil buffer cuts everything
I did enable it. The problem is not that it is not cutting anything, but rather that it cuts too much. EDIT: The problem is as follows: drawRect(...)// <- gets drawn setUpStencil(...) drawRect(...) // <- gets cut entirely (should get cut only partially) disableStencil() drawRect(...) // <- gets drawn
-
[SOLVED... KIND OF]Stencil buffer cuts everything
Sorry, what? I have just set it up and it cuts everything drawn while it is active.
IPS spam blocked by CleanTalk.