Jump to content

Asweez

Forge Modder
  • Posts

    421
  • Joined

  • Last visited

Everything posted by Asweez

  1. So I have a ExtendedInventory for the player that has one slot. Whenever my item is in that slot and I die, the item is deleted. How do I make it drop like any other item?
  2. Yeah it should tell you where it's looking for your texture but can't find it
  3. Ok so I see something is going on in method func_180426_a that might be useful. What does that method do?
  4. Ya: PacketHandler JetpackFlyPacket: (empty as of now) KeyHandler: KeyBindings: Init method: (edited for the important parts) Tell me if you need anything else
  5. Hi TGG, This sounds like a great idea! My only concern is that noobs will just copy paste this into their mod and then tweak a minor thing then claim it as their own. I have some nifty tricks and I'll contribute and help ya . Im really glad someone has started something like this. -Asweez
  6. Ok so I have my packets set up but where would I put the player.addVelocity? Would it be in the handler? And where would the player's rotation amounts be inserted? Would they be a parameter for the packet or calculated during message handling?
  7. Ok so I know how to get the player's pitch and yaw, but the world can't be remote (!world.isRemote). However, I want to use the players rotation to add velocity, but the player.addVelocity method won't work when the world isn't remote. How would I do this?
  8. Before you initialize your EntityItem variable, you should probably check if the entity on top of the block IS an Item. If it's not your game will crash. As for the recipe manager, look into the CraftingManager class. Maybe you could use ArrayLists and a getter or something. I'm not sure exactly, but I'd have to look.
  9. I want to add a slot somewhere in the player's inventory that only my Item fits in. I can't quite get coolAlias' tutorial to work. Can anyone help?
  10. You're going to need a Rendering class and register it in your client proxy.
  11. @Override public void onCreated(ItemStack itemStack, World par2World, EntityPlayer player) { itemStack.stackTagCompound = new NBTTagCompound(); StatBase statbase = StatList.distanceWalkedStat; itemStack.stackTagCompound.setInteger("walked", ((EntityPlayerMP)player).func_147099_x().writeStat(statbase)); } This is the method in my Item. I'm trying to save the distanceWalked stat into NBT
  12. Ok so it turns out I can't cast EntityPlayerMP to EntityClientPlayerMP. Anything else?
  13. I have an Item that I want to use how far the player has walked, but I can't figure out how to retrieve the distanceWalked value. Can anyone help?
×
×
  • Create New...

Important Information

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