MGlolenstine
Members-
Posts
106 -
Joined
-
Last visited
Everything posted by MGlolenstine
-
Ok, so I'm trying to use Minecraft's deadmou5e ears code, so I copy-pasted code from Minecraft's class into my class, and it requires AbstractClientPlayer. public static void renderEars(AbstractClientPlayer entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) { if (entitylivingbaseIn.hasSkin() && !entitylivingbaseIn.isInvisible()) { playerRenderer.bindTexture(entitylivingbaseIn.getLocationSkin()); for (int i = 0; i < 2; ++i) { float f = entitylivingbaseIn.prevRotationYaw + (entitylivingbaseIn.rotationYaw - entitylivingbaseIn.prevRotationYaw) * partialTicks - (entitylivingbaseIn.prevRenderYawOffset + (entitylivingbaseIn.renderYawOffset - entitylivingbaseIn.prevRenderYawOffset) * partialTicks); float f1 = entitylivingbaseIn.prevRotationPitch + (entitylivingbaseIn.rotationPitch - entitylivingbaseIn.prevRotationPitch) * partialTicks; GlStateManager.pushMatrix(); GlStateManager.rotate(f, 0.0F, 1.0F, 0.0F); GlStateManager.rotate(f1, 1.0F, 0.0F, 0.0F); GlStateManager.translate(0.375F * (float)(i * 2 - 1), 0.0F, 0.0F); GlStateManager.translate(0.0F, -0.375F, 0.0F); GlStateManager.rotate(-f1, 1.0F, 0.0F, 0.0F); GlStateManager.rotate(-f, 0.0F, 1.0F, 0.0F); float f2 = 1.3333334F; GlStateManager.scale(1.3333334F, 1.3333334F, 1.3333334F); playerRenderer.getMainModel().renderDeadmau5Head(0.0625F); GlStateManager.popMatrix(); } } }
-
What is the Vanilla Packet Receive event called?
MGlolenstine replied to MGlolenstine's topic in Modder Support
Thank all of you! -
Well... to be honest, I don't think that my assumption that it wasn't the correct one was correct, but when I try it with Minecraft.player, I get NPE. And I'm 100% sure that I call it when it's not null
-
What is the Vanilla Packet Receive event called?
MGlolenstine replied to MGlolenstine's topic in Modder Support
I'm trying to cancel a Vanilla packet or at least change it's contents -
What is the Vanilla Packet Receive event called? I need it for some Vanilla Augmentation
-
How can I get AbstractClientPlayer? Minecraft.getMinecraft().player isn't the right one, even tho it's accepted... I need it for drawing an object
-
Could you link me to some more explanation?
-
So... How would I go about putting a cape in front of the player? Something like APRON.
-
How would I make and render my own cloak/cape in minecraft? Do I have to create my own render or can I use Minecraft's one?
-
I'm trying to place a block
-
Ok, I'm porting my old mod from 1.8 to 1.12 and I want to know what is the new alternative to "C08PacketPlayerBlockPlacement". I tried it with Minecraft.getMinecraft().player.connection.sendPacket(/* This part is missing and I don't know what to put in here */); Please tell me the alternative.
-
How can I render entities in front of the blocks
MGlolenstine replied to MGlolenstine's topic in Modder Support
What about chests? AFAIK they are not players... And nametags? Thanks for the answer EDIT: Figured it out... thanks so much for your help! -
How can I render entities like players, mobs and chests in front of the wall of blocks? I want to make them being seeable through the walls. I have achieved the similar effect with glow potion effect, but the problem is that that is the just outline. I want to have skin shown and whole player's body. Something like in the attached screenshot. How can I achieve this? I've asked people who did Forge before, and they said that it has something do to with "Z" rendering value, I don't know where to use it or how to use.
-
IUpdatePlayerListBox in Minecraft 1.11.2
MGlolenstine replied to MGlolenstine's topic in Modder Support
Thanks! -
How to place invisible glowing block without collision at defined location? Something like invisible torch?
-
What is IUpdatePlayerListBox equivalent in minecraft forge 1.11.2?
-
Ok, so I tried sending a message to player, but when I wanted to instantiate ITextComponent, it popped up with a lot of methods. So I tried it like this. ITextComponent itc = ITextComponent.appendText("random text..."); but it didn't work because I was reffering to appendText from static context. Can you please tell me how to do it properly?
-
How to fire a function at right click
MGlolenstine replied to MGlolenstine's topic in Modder Support
Aha, I see it now... Thanks! -
How to fire a function at right click
MGlolenstine replied to MGlolenstine's topic in Modder Support
I know that I'm gonna sound stupid because I don't know anything about this stuff, but where can I find that net.minecraft.item.Item class? In the build/tmp/recompileMc/compiled/net/minecraft/item I don't see any methods named "onItemRightClick" smh... -
How to fire a function at right click
MGlolenstine replied to MGlolenstine's topic in Modder Support
Ok, so I tried to override the method... My current WoodenRing.java is package xyz.mglolenstine.SimpleRings; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.item.EntityTNTPrimed; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class WoodenRing extends Item{ public WoodenRing(String registryName, int MaxStackSize){ super(); this.setRegistryName(registryName); this.setUnlocalizedName(registryName); this.setCreativeTab(CreativeTabs.REDSTONE); this.setMaxStackSize(MaxStackSize); } @Override public ItemStack onItemRightClick(ItemStack item, World world, EntityPlayer player) { return item; } } but the @Override has some interesting stuff to say... -
How to fire a function at right click
MGlolenstine replied to MGlolenstine's topic in Modder Support
Actually I was looking for using an item, thanks! Could I get the link to the documentation? I just don't seem to be able to get anything else than the ItemPickup event in this docs: https://mcforge.readthedocs.io/en/latest/events/intro/ Thanks once again! -
What is rightClick event or something similar?
-
Ok, found the problem. Pixels weren't 100% transparent
-
I don't know how to explain it, but some pixels are just missing... If you can see it in the top left of the item's model Most of the edge pixels are 3d, but top left one is 2d it's easier to see it on this picture...
-
Ok, I was wrong and I'm sorry.