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.

Featured Replies

Posted

For the mod I'm working on, there are a few features I need to implement that I don't quite know how to code due to the fact that I'm still new to all of this. Some I think are simpler than others. I figure it would be better to create one topic than to create one for each question. Right now, here are a few features I'm not sure how to implement

 

*Armor-assisted flight

*Shoes that decrease fall damage and allow the user to step up further than .5m

*Armor-generated lighting

 

I'm not 100% sure about the assisted flight and lighting, but you might be able to code the shoes so that when they are crafted, they have an enchantment on them, say, Feather Falling II. The only down side to this is that you can't enchant your boots (shoes) afterward unless you use the Enchanted Books.

 

To do this, you'll want to put a onCreated method in the boots (shoes) class.

 

 

public void onCreated(ItemStack par1ItemStack, World world, EntityPlayer entity){

    par1ItemStack.addEnchantment(Enchantment.featherFalling, level); //where level is integer of the Enchantment level, ie 2
    	
}

 

 

Hope that helps ya!

  • Author

Okay, question: One of the upgrades I want to add to my armor is a pocket computer from computercraft 1.6 that is built into the helmet. the computer would always be on (unless shut down manually or the helmet is taken off) but displayed only at the press of a hotkey. because the functions in computercraft are named in numbers and not words, I'm having a difficult time understanding how to tell the computer to turn on and off under certain circumstances.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.