Everything posted by DiabolusNeil
-
[1.6.4] [RESOLVED] Replenishing hunger without using an ItemFood
Thank you!
-
[1.6.4] [RESOLVED] Replenishing hunger without using an ItemFood
I want to make an item to do this, but it won't be a food. I've looked at the ItemFood code, but I still can't figure out how it replenishes the player's hunger. Could someone help me?
-
Cure Potion Effects with Item
We're not as smart as you almighty LexManos.
-
[1.6.4] Storing and Later Using Mob NBT Data in an Item
Thanks for the examples.
-
Cure Potion Effects with Item
You need to add @Override above the method(s) you're trying to use that are inherited by the super class (in this case, Item). Example: @Override public ItemStack onEaten(ItemStack itemstack, World world, EntityPlayer player) { if (!player.capabilities.isCreativeMode) { --itemstack.stackSize; } if (!world.isRemote) { player.curePotionEffects(itemstack); } return player.stackSize <= 0 ? new ItemStack(TutorialMod.ShriveledLeaf) : itemstack; } It seems you don't know a lot about Java or modding in general, since you directly copied the method from the Item class, didn't change anything, and expected it to work.
-
[1.6.4] Storing and Later Using Mob NBT Data in an Item
I'm a noob at working with NBT data. The Premise: Players can create a Mob Net. It can store up to one mob at a time, then can be used to respawn the mob, with the NBT data it had before it was "picked up". The Problem: I have practically no idea how to effectively use NBT data. I only know the extreme basics. Could someone help me?
-
[SOLVED] Entity Name Checking Always Returns False [1.6.4]
Dang it, I forgot about that. Thank you!
-
[SOLVED] Entity Name Checking Always Returns False [1.6.4]
My first topic on here, don't hate me. Some test code I'm working with: @Override public boolean onLeftClickEntity(ItemStack itemstack, EntityPlayer player, Entity ent) { if (!ent.worldObj.isRemote) { System.out.println("|" + ent.getEntityName() + "|"); if (ent.getEntityName() == "Pig") { System.out.println("TRIGGER"); } System.out.println("|" + ent.getEntityName() + "|"); } return false; } And here's what the console looks like when I hit a pig. |Pig| |Pig| Going through the If statement, it outputs as false, even though it's seemingly supposed to be true. Is there anything I'm missing?
-
Server Error | Need Help Diagnosing Problem
Thanks! I'm guessing the problem was caused by Zan's Minimap being strictly a client-side mod, and it cannot be installed on servers.
-
Server Error | Need Help Diagnosing Problem
Hello. I'm kinda new at this, so please don't hate on me. Here's the scenario: I created a mod pack. I will list a few details about it first. It requires the Technic launcher, and I have done a lot of licensing-investigating to see if all of these mods are allowed to be used in a public mod pack without any special permission. It contains 26 mods (50 according to Forge), and is a pretty big pack, though it seems stable enough, and does not randomly crash. Running the mod pack in Singleplayer works perfectly fine. Nothing strange. I then proceeded to test the pack in Multiplayer, so I started with a control. I ran a little Forge server with no problems. I then installed all of my mods into the server. I get these messages. ForgeModLoader-server-1.log: http://pastebin.com/E8k0GWMT Corresponding Crash Report: http://pastebin.com/SESWjj4f I tested this 2 more times, same exact thing happens. I'm only good with reading simple error messages, but I can't decipher anything with this. Could someone please explain what I'm doing wrong?
IPS spam blocked by CleanTalk.