Jump to content

Jetfan16ladd

Members
  • Posts

    78
  • Joined

  • Last visited

Everything posted by Jetfan16ladd

  1. So I don't need a tick handler to check? I will test this out later.
  2. I don't know how to check if the player is sprinting. I know there is a issprinting method or something to that effect but it is only called when the player starts sprinting.
  3. I want a tick handler that checks if the player is sprinting. When the player is sprinting and wearing specific armor I want particles to follow the player and for the player to have strength. I know how to do potion effects and armor checks, I just don't know about the tick handler and particles. I also want to know if it would be possible to check the amount of blocks the player ran and when the player runs the specific blocks they get a potion effect.
  4. On a side note, does anyone know of any videos that are easy to follow that explain basic java.
  5. Sorry that I don't know that much java. I really don't want to learn it because I wont need it other then for this. I fixed the override but I don't know how to "grab 'entityLiving', check if its player (instanceof/cast), then get current held item (the stack) and set it different, new one." and idk what the code at bottem is.
  6. I'm completely lost, but what i'm trying to do it make it so your skin changes when you wear certain armor. I want this because armor looks too blocks and doesn't cover your hands and over places. Also then you don't need to have 4 armor pieces.
  7. Idk how to render the players model but I will try to do so with a tick handler so it knows when the player is wearing the armor.
  8. I know it is possible to morph players. Is there a way to use a method that those mods do as it is pretty much the same thing.
  9. I am trying to make a item be replaced with another onEntitySwing(Left Click). I looked around on the forums and online but couldn't figure it out. Here is my current code: @Override onEntitySwing() { };
  10. No I haven't tried yet as I have no idea where to start.
  11. In my mod I want a piece of armor (chest plate) that changes the players skin. I have moderate experience with coding. I have no idea where to start or even if this is possible. If you can help me I would appreciate it.
  12. Umm did u even read the post? The rpg works fine.
  13. I am making a few guns in my mod and I want to know if it is possible to make them fire at a slower or faster fire rate. I also want to make a rpg that push's the player back a block when they shoot. I only currently have the rpg code. public class RpgClass extends Item { public RpgClass() { super(); setMaxStackSize(1).setFull3D(); } @Override public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World,EntityPlayer par3EntityPlayer) { ItemStack armourPiece0 = par3EntityPlayer.inventory.armorInventory[2]; if (armourPiece0 != null && armourPiece0.getItem() == Mineturnedmain.DeathStrokeChestplate&& par3EntityPlayer.inventory.consumeInventoryItem(Mineturnedmain.RpgAmmo)||par3EntityPlayer.capabilities.isCreativeMode) { par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F)); if (!par2World.isRemote) { par2World.spawnEntityInWorld(new EntityRpg(par2World, par3EntityPlayer)); } } return par1ItemStack; } @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister reg){ this.itemIcon = reg.registerIcon("morecraftingmod:rpg"); } }
  14. I added no fall damage to the armor so it works now.
  15. Thanks for helping me even though I am a java noob. I took this code out of the Armor Class if(player.capabilities.allowFlying == false){ player.capabilities.allowFlying=true; } and everything works fine except when I fly around for a bit and land I take large amounts of fall damage. This also happens if I remove the chest plate in the air. The amount of fall damage I take is not normal or realistic. How can I fix this?
  16. I tied TickHandler.Class but it still allows the player to fly when not wearing the armor.
  17. It says TickHandler Cannot be resolved as a varible
  18. I registered it in preint as MinecraftForge.EVENT_BUS.register(new TickHandler()); But it still does not stop flying when I take the armor off.
×
×
  • Create New...

Important Information

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