TLHPoE
Members-
Posts
638 -
Joined
-
Last visited
Everything posted by TLHPoE
-
Oh I feel like a retard. THANKS MAZE.
-
How would I find an available ID for my slot? In my container, I have the player's inventory and my 6 slots. How would I decide what numbers to use? ContainerAccessories:
-
I'm currently trying to make my custom furnace open up the default Minecraft's craft GUI (I'll be making my own Container files and GUIs later), but it never opens the GUI. I know it's firing up because the prints are being printed in console. GuiHandler: http://paste.minecraftforge.net/view/9c1d2f1c BlockGFurnace: http://paste.minecraftforge.net/view/8e45bcf6
-
My bad, the /give command uses an ItemStack. You could get the item itself by using the findItem method in GameRegistry. All you need is the mod's ID and the item's name. Item item = GameRegistry.findItem("ic2", "copperIngot");
-
You could look into how the /give command works. I'm 100% sure it's method uses the item's/block's ID.
-
I'm currently trying to make my mob use my armor and an iron sword, but it won't equip anything. Am I missing something? http://gw.minecraftforge.net/XD6X
-
Here's a video: http://www.youtube.com/watch?v=euGIvUfWA6M&feature=youtu.be
-
Don't really understand, but would I make a TickHandler, add a method to count the ticks, and then make a call to the TickHandler from the Event?
-
I had to mess around with a bunch of stuff, but whenever I kill a pig, it prints nothing. EventEnderDragon EventBase DarkOriginsEvent Do you have any other suggestions to try to add a delay?
-
I'm currently trying to add a 2 second delay after a pig's death, but it just ends up freezing the pig for 2 seconds and then doing everything else. Is there a way to wait 2 seconds without freezing the game's thread? EventEntity
-
I'm currently trying to make my mob use the biped model. Every time I spawn it, it has the right texture, and the right model. But when I hit it, it just starts stuttering everywhere. Am I doing something wrong? DarkOriginsEntities EntityDroneI RegistryBase
-
Oh, thanks. Forgot about unlocalized names.
-
Try looking into the nether portal block class for how it teleports the player back to the overworld.
-
I'm currently messing around with my items, and then I finally noticed that all my items are named "Crate Series 1". I have more mods in my workspace and their names are "Crate Series 1" too. I'm guessing that my mod with "Crate Series 1" is the last mod loaded. Am I doing something wrong? package assets.tf2stuff; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; import assets.tlhpoe.ConfigurationUtil; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod.*; import cpw.mods.fml.common.event.*; import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.registry.LanguageRegistry; @Mod(modid = "tf2stuff", name = "TF2 Stuff", version = "1.0", dependencies = "required-after:tlhpoe") @NetworkMod(clientSideRequired = true, serverSideRequired = false) public class TF2Stuff { public static Item key; public static Item crate1; @Instance("tf2hats") public static TF2Stuff instance = new TF2Stuff(); @EventHandler public void preInit(FMLPreInitializationEvent event) { ConfigurationUtil.addItemID("Key"); ConfigurationUtil.addItemID("Crate Series 1"); } @EventHandler public void init(FMLInitializationEvent event) { key = new ItemKey(ConfigurationUtil.getID(0, "Key")).setCreativeTab(CreativeTabs.tabFood).setTextureName("key"); crate1 = new ItemCrate(ConfigurationUtil.getID(0, "Crate Series 1"), 1).setCreativeTab(CreativeTabs.tabFood).setTextureName("crate"); LanguageRegistry.addName(key, "Mann Co. Supply Crate Key"); LanguageRegistry.addName(crate1, "Crate Series 1"); } @EventHandler public void postInit(FMLPostInitializationEvent event) { ConfigurationUtil.postInit(); } }
-
Try using EntityItem. There's a variable for the amount of time it takes to pick up.
-
Is there anyway to add another line of information to an already existing item? Without making it a coremod? An already existing item, like I get a diamond sword and craft it with my item and it returns the diamond sword with a new list of information.
-
I made my item send a message to the player to check the mode the item is in, but the message always displays twice. The chat to the player is on line 20 & 21. http://pastebin.com/zHEV8up6
-
I just semi-finished my lightning sword. It basically shoots lightning where the player is pointing when they right click. Only problem is that the flames from the lightning strike spawn right next to the player. Is there anyway to stop this? public ItemStack onItemRightClick(ItemStack par1ItemStack, World world, EntityPlayer player) { Random r = new Random(); player.setItemInUse(par1ItemStack, this.getMaxItemUseDuration(par1ItemStack)); par1ItemStack.damageItem(3, player); Vec3 vec3 = player.getPosition(1.0F); Vec3 vec3a = player.getLook(1.0F); Vec3 vec3b = vec3.addVector(vec3a.xCoord * 64, vec3a.yCoord * 64, vec3a.zCoord * 64); MovingObjectPosition movingobjectposition = world.clip(vec3, vec3b); if(movingobjectposition != null) //null check { world.spawnEntityInWorld(new EntityLightningBolt(world, movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ)); } return par1ItemStack; }
-
Oh, found the problem. I was using the wrong parameters for the addInformation method.
-
Works like a charm.
-
The breaks fixed the depositing/withdrawing part. Information still doesn't display though. :I
-
What would the distance variable be?
-
Your UltimateGemSword class should look more like this: package yourpackage.examplemod import net.minecraft.everything.*; public class UltimateGemSword extends ItemSword { public UltimateGemSword(yourparams) { super(par1, par2Material); } @Override public void doStuff() { //example stuff } public void addInformation() { //example stuff } } To my knowledge, I don't think you should be placing methods inside of other methods.
-
It doesn't crash or give off errors any more, but it never displays the information. http://pastebin.com/8Z8P8pUb