Chlod
-
Posts
9 -
Joined
-
Last visited
Posts posted by Chlod
-
-
I have a cow. He's just basic, doesn't even have a walking animation. So, I want to get a custom milk bucket from him, the filled bucket is named "GMMilk."
What I wish to learn: How to get that milk bucket instead of the normal one
So... breakdown.
1. Right click the custom cow with an empty vanilla bucket
2. Get a "GMMilk" bucket but NOT a "milk_bucket" bucket
Thanks in advance! Have a nice day
-
Ok... it doesn't fire at all. With the new changes and the past one.
-
I did it! Thanks guys!
Here's the results:
@EventHandler public void getPlayer(EntityJoinWorldEvent event){ //Credits: Matryoshika, Ernio and coolAlias on the Minecraft Forge Forums if(event.entity instanceof EntityPlayer){ EntityPlayer player = Minecraft.getMinecraft().thePlayer; player.addChatMessage(new ChatComponentText("text)); } }
-
Ok, I did it. Now, how about the chat message now?
-
PlayerLoggedInEvent, though I believe this event is fired only on the server side; if so and you absolutely must have an event that is fired on the client side (i.e. your mod is a client-side only mod), you can use EntityJoinWorldEvent and check for EntityPlayer before sending the message.
So now, what do I do to check if the Entity is a player, and how do I send the message?
EDIT: I can't find a tutorial for this exact version and topic on Google, so don't ask me to Google it. Done that already.
-
I'm trying to post a message to players, when they login, saying they need to update to the latest version. Now, I've done the whole "getting-the-version" thing. I just need to know what code to put to send the message ONLY WHEN the player logs into the game.
Thanks in advance
-
Is there any way to use 1.7.10 mods for 1.8? Or something that can translate 1.7 code to 1.8? Thanks in advance.
-
What do I do if I want a block to rotate. Similar to the furnace, when you place it, it always gets placed with the front facing you. Thanks.
package com.chlod.golf.Blocks; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.entity.EntityLivingBase; import net.minecraft.item.ItemStack; import net.minecraft.util.IIcon; import net.minecraft.util.MathHelper; import net.minecraft.world.World; public class Slide extends Block{ protected Slide(Material p_i45394_1_) { super(p_i45394_1_); this.slipperiness = 1.5F; this.setTickRandomly(true); } }
Custom milk from custom cow
in Modder Support
Posted
Found it! Thanks