Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Jetfan16ladd

Members
  • 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. So where do I put that code?
  5. On a side note, does anyone know of any videos that are easy to follow that explain basic java.
  6. 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.
  7. I will try to make a armor model now.
  8. 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.
  9. 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.
  10. 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.
  11. 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() { };
  12. No I haven't tried yet as I have no idea where to start.
  13. 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.
  14. Umm did u even read the post? The rpg works fine.
  15. 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"); } }
  16. I added no fall damage to the armor so it works now.
  17. 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?
  18. So I put that in the TickHandler Class?
  19. That link doesn't even work.
  20. I tied TickHandler.Class but it still allows the player to fly when not wearing the armor.
  21. It says TickHandler Cannot be resolved as a varible
  22. 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.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.