Jump to content

Centipede

Members
  • Posts

    24
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Location
    USA
  • Personal Text
    Apprentice Modder

Centipede's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. the keep inventory is open source, i'd take a look at that. Can't find the link to give to you though, sorry.
  2. if your using a straight copy of arrow, make sure your changing the specific factors that relate to your mod. The advice i can offer ou is to compare yours to the arrow, and see where its going wrong. the problem may be arrow texture, or how the entity spawns (possibly behind the target) you can test if it is by shooting at a block to see where the arrow ends up
  3. give me the code for the sword and the main file where the sword is declared, and i'll look at it
  4. Seems to be a problem with how you may have declared the obsidian as a material. then the enchant class isn't recognizing it as a material so it can't enchant to it
  5. i'd recommend not using a custom item material for now, and let it be treated as gold iron diamond etc. I honestly don't know how to add enchanting compatibility to custom blocks, it's probably something within the material file.
  6. ah, i see what your doing, you have a custom item type. hm..
  7. ^works too, but it's easier with the code i supplied. Basically, yes this can be enchanted. what can be enchanted onto it is already determined by the item type. either weapon or tool etc. Your doing work minecraft already does. (code supplied is tested) public int getItemEnchantability() { return 1; } in case you missed it from my spam
  8. plus, why don't you add the line and test it. if it works i'm right, if it doesn't, keep trouble shooting.
  9. no, i pulled that sample from the itemBow.java file. a vanilla item.
  10. public int getItemEnchantability() { return 1; } you'll need that. return 1; is basically saying yes it can be enchanted
  11. take a look at the class file named EnumEnchantmentType.java
×
×
  • Create New...

Important Information

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