Jump to content

[1.7] Modular Armor questions


wrink

Recommended Posts

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

 

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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