Everything posted by Jetfan16ladd
-
[1.7]Sprinting tick handler
So I don't need a tick handler to check? I will test this out later.
-
[1.7]Sprinting tick handler
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.
-
[1.7]Sprinting tick handler
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.
-
[1.7.10][Solved] Replace item with another
So where do I put that code?
-
[1.7.10][Solved] Replace item with another
What is playerIn?
-
[1.7.10][Solved] Replace item with another
On a side note, does anyone know of any videos that are easy to follow that explain basic java.
-
[1.7.10][Solved] Replace item with another
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.
-
[1.7.10][unsolved] Armor That Changes Skin
I will try to make a armor model now.
-
[1.7.10][unsolved] Armor That Changes Skin
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.
-
[1.7.10][unsolved] Armor That Changes Skin
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.
-
[1.7.10][unsolved] Armor That Changes Skin
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.
-
[1.7.10][Solved] Replace item with another
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() { };
-
[1.7.10][unsolved] Armor That Changes Skin
How would you do this?
-
[1.7.10][unsolved] Armor That Changes Skin
No I haven't tried yet as I have no idea where to start.
-
[1.7.10][unsolved] Armor That Changes Skin
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.
-
[1.7.10]Fire Rate on guns
Umm did u even read the post? The rpg works fine.
-
[1.7.10]Fire Rate on guns
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"); } }
-
[1.7.10][Solved] Armor Flying
I added no fall damage to the armor so it works now.
-
[1.7.10][Solved] Armor Flying
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?
-
[1.7.10][Solved] Armor Flying
So I put that in the TickHandler Class?
-
[1.7.10][Solved] Armor Flying
That link doesn't even work.
-
[1.7.10][Solved] Armor Flying
I tied TickHandler.Class but it still allows the player to fly when not wearing the armor.
-
[1.7.10][Solved] Armor Flying
It says TickHandler Cannot be resolved as a varible
-
[1.7.10][Solved] Armor Flying
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.
-
[1.7.10][Solved] Armor Flying
What is the FML bus?
IPS spam blocked by CleanTalk.