Jump to content

Xwaffle

Members
  • Posts

    79
  • Joined

  • Last visited

Everything posted by Xwaffle

  1. Alright I added the lines. but NOW I get an instant crash on right click. The error is a Ticking Entity Here are the lines that are needed from the crash report.
  2. Well fishEntity is not a boolean so I can not set it to true nor false. I did try setting it equal to null and != null but those did not work. I tried placing it in two different places Another thing though fishEntity is not the rod its self it's actually an instance of a fishing rod's hook. If this isn't null, the icon image of the fishing rod is slightly different. Another idea please? I really need this working.
  3. was hoping it would work if I spammed it! jk
  4. Also That's not a double onRightClick thought i'd let you know
  5. Can do! Here is the class!
  6. Got a lot of views but n answers
  7. Anyone got any idea to why I got this issue?
  8. Well I am making a custom Fishing rod, and the EntityHook is thrown out perfectly fine, but when I try to retract the fishing rod this is what happens. It just keeps throwing out a new entity. I could use some help. The only class I think that should be needed is the Entity Class. I had an idea of maybe trying onItemRightClick if Entity(or bobber? idk) != null set Entity(or bobber?) to dead.
  9. I've tried that as well :-/
  10. Okay, I used the correct parameters now but the boots STILL will not remove from my item slot.
  11. I tried doing this but I was not to sure on what I should put in for my paramaters I tried player.inventory.decrStackSize(boots, 1). um the paramters asked ar supposed to be ints so I could not use boots which is the slot of armor slot boots I casted that. I just put 1 for no reason ;P so my question is what should I put for my slot ID number or par1 it says in the declaration.
  12. Well, thanks a bunch for responding! 1. Server works perfectly fine actually that would be because of number 2. 2. Yes it is server side. You can not add potion effects client side. Sadly :-/ 3. Ideaas? 4. It works though. 5. Hmmm I don't know how else to do it.
  13. I'm going to bring this topic back with a bump because it is still not solved
  14. I tried using that if statement but that's not even a valid statement. so I tried a bit of what you wrote if (boots.stackSize <= 0) { boots.stackSize = boots.getItem().getContainerItemStack(boots).stackSize; } That does not work. MAde me crash actually.
  15. Title says it all. I've got custom boots that add Speed to player. The boots take damage from walking. Once the boots reach there damage value they don't seem to be getting removed from my armor slot. Another thing is that --item.stacksize does not work. I've set up some chat messages to tell me what itemstack equals and what the damage is. Here is the class. It should be all you need.
  16. so if I simply change my public long to public long timeLastWatered = 10000; it should solve my issue correct? I will that a try. Unless I misread what you said.
  17. Well the title says it all what i'm trying to do is make it so that once I use my bonemeal like item on the tree it is saved on an nbt and counts down from 1200000 (1 minecraft day). uhm, for some reason it's allowing me to continuously use the item without anything holding me back. Please give me some assistance. TileEntityTree Bonemeal Function For Tree
  18. Interesting, I remember reading a leaves block override issue. Could you also put the leaf blocks in the array?
  19. Changing the track range did not seem to work.
  20. I'm currenly working on adding a custom mob to the game. It will spawn using an egg but it willl despawn within like 4 seconds. I also get this error in my console when I try spawning in the mob. 2013-06-14 16:13:16 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Adding entity to track 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:225) 2013-06-14 16:13:16 [iNFO] [sTDERR] at cpw.mods.fml.common.registry.EntityRegistry.tryTrackingEntity(EntityRegistry.java:363) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:66) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.world.WorldManager.onEntityCreate(WorldManager.java:37) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.world.World.obtainEntitySkin(World.java:1585) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.world.WorldServer.obtainEntitySkin(WorldServer.java:935) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.world.World.spawnEntityInWorld(World.java:1573) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.item.ItemMonsterPlacer.spawnCreature(ItemMonsterPlacer.java:120) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.item.ItemMonsterPlacer.onItemUse(ItemMonsterPlacer.java:76) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.item.ItemStack.tryPlaceItemIntoWorld(ItemStack.java:149) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.item.ItemInWorldManager.activateBlockOrUseItem(ItemInWorldManager.java:425) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:553) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:134) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:53) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:675) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:571) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:127) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469) 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16) 2013-06-14 16:13:16 [iNFO] [sTDERR] Caused by: java.lang.IllegalStateException: Entity is already tracked! 2013-06-14 16:13:16 [iNFO] [sTDERR] at net.minecraft.entity.EntityTracker.addEntityToTracker(EntityTracker.java:205) 2013-06-14 16:13:16 [iNFO] [sTDERR] ... 21 more As you can see none of the error says anything about my class. Here is where I load the wizard and all the good stuff about it. EntityRegistry.registerModEntity(EntityWizard.class, "Wizard", 2, this, 80, 3, true); EntityRegistry.addSpawn(EntityWizard.class, 5, 2, 6, EnumCreatureType.creature, BiomeGenBase.plains, BiomeGenBase.beach, BiomeGenBase.jungle); LanguageRegistry.instance().addStringLocalization("entity.Wizard.name", "Wizard"); I'm going to try changing the tracker range to 100 and the updateFrequency to 10. Please give me some help.
  21. For the GUI should I use your GUIOVerheal? Or should I just use one of your RenderSoldier/RenderBomber and whatnot.
  22. Oh my, is it kind of like hard to do? I can probably do packet handler and GUI render but saving data on player would require NBT tags right?
  23. Okay, so I am working on a like Wizard/spell type mod. I have working spell items, but I want to have a mana system instead of breaking the items. Would it be easy/possible for me to add onto the Inventory Gui and just add like x/100 Mana somewhere in the gui? Please give me some help on how I would do that.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.