Centipede
Members-
Posts
24 -
Joined
-
Last visited
Everything posted by Centipede
-
the keep inventory is open source, i'd take a look at that. Can't find the link to give to you though, sorry.
-
Custom Bow's custom arrow hits the player in survival mode
Centipede replied to Mew's topic in Modder Support
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 -
or a redstone torch
-
[SOLVED(sort of)] Enchantments not appearing for custom weapons
Centipede replied to hotrods20's topic in Modder Support
give me the code for the sword and the main file where the sword is declared, and i'll look at it -
[SOLVED(sort of)] Enchantments not appearing for custom weapons
Centipede replied to hotrods20's topic in Modder Support
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 -
[SOLVED(sort of)] Enchantments not appearing for custom weapons
Centipede replied to hotrods20's topic in Modder Support
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. -
[SOLVED(sort of)] Enchantments not appearing for custom weapons
Centipede replied to hotrods20's topic in Modder Support
ah, i see what your doing, you have a custom item type. hm.. -
[SOLVED(sort of)] Enchantments not appearing for custom weapons
Centipede replied to hotrods20's topic in Modder Support
^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 -
[SOLVED(sort of)] Enchantments not appearing for custom weapons
Centipede replied to hotrods20's topic in Modder Support
Also, 50$ says it works my way -
[SOLVED(sort of)] Enchantments not appearing for custom weapons
Centipede replied to hotrods20's topic in Modder Support
plus, why don't you add the line and test it. if it works i'm right, if it doesn't, keep trouble shooting. -
[SOLVED(sort of)] Enchantments not appearing for custom weapons
Centipede replied to hotrods20's topic in Modder Support
no, i pulled that sample from the itemBow.java file. a vanilla item. -
[SOLVED(sort of)] Enchantments not appearing for custom weapons
Centipede replied to hotrods20's topic in Modder Support
public int getItemEnchantability() { return 1; } you'll need that. return 1; is basically saying yes it can be enchanted -
[SOLVED(sort of)] Enchantments not appearing for custom weapons
Centipede replied to hotrods20's topic in Modder Support
take a look at the class file named EnumEnchantmentType.java