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.

xLionel775

Members
  • 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. AEItems: AEBlocks:
  10. AEItems: AEBlocks:
  11. New Common Proxy: Crash Log:
  12. New Common Proxy: Crash Log:
  13. If I register my items first when I plant the seed my game crashes ...
  14. If I register my items first when I plant the seed my game crashes ...
  15. Common Proxy Class:
  16. Common Proxy Class:
  17. And how should I initialize the seed and drop? Main Class: Items Class: Crop Class: TestCrop Class:
  18. And how should I initialize the seed and drop? Main Class: Items Class: Crop Class: TestCrop Class:
  19. A way to fix this? I'm new to java and I can not really figure out how to solve this problem
  20. A way to fix this? I'm new to java and I can not really figure out how to solve this problem
  21. What do not you understand?
  22. What do not you understand?
  23. 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

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.