Jump to content

xLionel775

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by xLionel775

  1. Here is my custom sword class: import com.terraweapons.main.TerraWeapons; import net.minecraft.item.ItemSword; public class TerraSword extends ItemSword { public TerraSword(String name, ToolMaterial material) { super(material); this.setUnlocalizedName(name); this.setCreativeTab(TerraWeapons.tabTerraWeapons); } } Here is my ToolMaterial code: public static ToolMaterial material1 = EnumHelper.addToolMaterial("material1", 3, 100, 2.0F, 0F, 20); And here I register my weapons: public static Item weapon1 = new TerraSword("weapon1", ToolMaterials.material1);
  2. Ok so I made the List: List<ItemStack> copper = OreDictionary.getOres("ingotCopper"); And here is the recipe code: GameRegistry.addRecipe(new ShapedOreRecipe(copper, new Object[]{"XXX", "XXX", "XXX", 'X', AEItems.iron_essence})); The problem is I'm not very good at java and I don't understand exactly what I need to do. If you want to give me an example that works would be awesome.
  3. How can I make a recipe to output an OreDictionary item? This thing doesn't work GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack("ingotCopper"), new Object[]{"XXX", "XXX", "XXX", 'X', AEItems.iron_essence}));
  4. Textures from my custom crops are not recognized by Waila. BlockState JSON: ModelBlock JSON: Every stage has a different json. In game all the textures work, only waila does not recognize them. I tried to implement IWailaDataProvider but it didn't work.
  5. This is how I set the drops for crops but using this method requires a separate class for every crop ... anyway thanks for help
  6. This is how I set the drops for crops but using this method requires a separate class for every crop ... anyway thanks for help
  7. There is any way to do what I want? Using another code?
  8. There is any way to do what I want? Using another code?
  9. If I register my items first when I plant the seed my game crashes ...
  10. If I register my items first when I plant the seed my game crashes ...
  11. And how should I initialize the seed and drop? Main Class: Items Class: Crop Class: TestCrop Class:
  12. And how should I initialize the seed and drop? Main Class: Items Class: Crop Class: TestCrop Class:
  13. A way to fix this? I'm new to java and I can not really figure out how to solve this problem
  14. A way to fix this? I'm new to java and I can not really figure out how to solve this problem
  15. I have a problem with the items that are dropped by crops. At first I solved the problem by doing a separate class for every crop. I want to set the seed and crop drop in the GameRegistry like that GameRegistry.registerBlock(resource_crop = new TestCrop("resource_crop", AEItems.resource_seed, AEItems.redstone_sprout), "resource_crop"); but it was unsuccessful. Custom Crop code: Crop Register: When I break the crop I get this error: [server thread/WARN] [FML]: Attempted to add a EntityItem to the world with a invalid item at (936.52, 4.37, 999.74), this is most likely a config issue between you and the server. Please double check your configs
×
×
  • Create New...

Important Information

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