Jump to content

LittleBreadLoaf

Members
  • Posts

    8
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

LittleBreadLoaf's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Alright... Sorry I'm so hopeless, but what do I put in the CustomPacket's methods? Like readPacketData and such? In the key handler, I have Packet packet = new DeactivatePacket(true, player.username); but I don't know how to make it read this, or understand what I want it to do Also, player doesn't have the method sendQueue. Is there a way to get player differently than (EntityPlayer) player = Minecraft.getMinecraft().thePlayer;?
  2. How would I have the server change it and tell the client? I've used some packets, but they aren't really my strong suit
  3. Thanks, I'll keep that in mind.
  4. Hello, this is LittleBreadLoaf. I'll get right into it. In my mod, the player is given a type and texture for their sword that is unique to the player. After they unlock it, they can "upgrade" their sword for short periods of time as long as they have energy. For activating the second-tier sword, a simple method is used: /** * called when the player releases the use item button. Args: itemstack, world, entityplayer, itemInUseCount */ public void onPlayerStoppedUsing(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, int par4) { if(props.getZType() == 1) { ItemStack shikai = new ItemStack(Items.shikaifire, 1); par1ItemStack.itemID = shikai.itemID; } } This part works just fine. To answer your question that I know you have, why not just use metadata, this is why: Depending on the player's type, they can get 12 different types of tier 2 swords, each with 5 textures available. I have the first sword go to different tier 2 swords, and from there to whatever texture they have, instead of one item with 60 different subtypes (or even 12, if I did textures differently) However, to deactivate the tier 2 sword, I used a keybind and relatively the same code: @Override public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) { this.keyPressed = true; EntityPlayer player = mc.thePlayer; ItemStack heldItem = player.getCurrentEquippedItem(); ItemStack var13 = new ItemStack(Items.zanpakuto, 1); if(heldItem != null ) { if(heldItem.getItem() == Items.shikaifire) { heldItem.itemID = var13.itemID; } } } All well and good, but on servers it will sometimes revert the texture to the original tier 1 sword (zanpakuto), but keep the effects and damage of the tier two sword, and it still drains the player's energy. So my questions are these: 1) Is there a better way of changing one item into another than switching item IDs? 2) If not, and my methods are ridiculous and terrible coding, do I need to make a bunch of different metadatas for this item? 3) It is registering the change of ID clientside, AKA changing the texture, but serverside keeps the tier 2 sword when deactivated. Is there a way I can keep my method but use packets to alert the server of the change? If you want the rest of the item classes, just ask. I figure that's all that's needed to answer the question, but the rest is available. Thanks for any help that may or may not come, LittleBreadLoaf
  5. Actually not too much I tried learning Java for a few years, and I never got around to it. But I still wanted to be able to make my own mod, so I just tried it myself. I understand it fairly well, but I've never really learned java aside from this.
  6. Hello, I am LittleBreadLof, creator of the Bleach Mod If you don't know what the Bleach Mod is, you can click on the link below, or read the following description. This mod is based off of the anime Bleach. As of now, it consists of 10 unique mobs, a new Energy Bar, weapons that use energy, new armors, masks that give potion effects, and a bunch planned in the future. Look at these pictures of mobs! http://i1120.photobucket.com/albums/l482/LittleBreadLoaf/2013-02-27_193624_zpsde28adbc.png[/img] http://i1120.photobucket.com/albums/l482/LittleBreadLoaf/2013-02-27_193419_zps26a00e55.png[/img] http://i1120.photobucket.com/albums/l482/LittleBreadLoaf/2013-04-19_183403_zps40bfb1af.png[/img] [embed=425,349] [/embed] Link to the Mod http://www.minecraftforum.net/topic/1600215-151-wipmodloader-bleach-mod-somewhat-forge-compatible-still-recruiting/ Unfortunately, this mod is only for ModLoader. I haven't been able to get the hang of Forge, and I find ModLoader much more familiar and comfortable to mod with. And that's where you come in. I am looking for people to help me with converting this mod to Forge. This could either be taking on the conversion as part of a team, or doing part of it, and sort of teaching me how to use Forge better. If you are interested, you can email me at littlebreadloaf@gmail.com. Cheers, LittleBreadLoaf
  7. Hello, I am LittleBreadLof, creator of the Bleach Mod If you don't know what the Bleach Mod is, you can click on the link below, or read the following description. This mod is based off of the anime Bleach. As of now, it consists of 10 unique mobs, a new Energy Bar, weapons that use energy, new armors, masks that give potion effects, and a bunch planned in the future. Look at these pictures of mobs! http://i1120.photobucket.com/albums/l482/LittleBreadLoaf/2013-02-27_193624_zpsde28adbc.png[/img] http://i1120.photobucket.com/albums/l482/LittleBreadLoaf/2013-02-27_193419_zps26a00e55.png[/img] http://i1120.photobucket.com/albums/l482/LittleBreadLoaf/2013-04-19_183403_zps40bfb1af.png[/img] [embed=425,349] [/embed] Link to the Mod http://www.minecraftforum.net/topic/1600215-151-wipmodloader-bleach-mod-somewhat-forge-compatible-still-recruiting/ Unfortunately, this mod is only for ModLoader. I haven't been able to get the hang of Forge, and I find ModLoader much more familiar and comfortable to mod with. And that's where you come in. I am looking for people to help me with converting this mod to Forge. This could either be taking on the conversion as part of a team, or doing part of it, and sort of teaching me how to use Forge better. If you are interested, you can email me at littlebreadloaf@gmail.com. Cheers, LittleBreadLoaf
×
×
  • Create New...

Important Information

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