Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Support & Bug Reports

Help with Forge goes here. Refer to Modder Support for help with Forge modding. You MUST read the EAQ before posting.


23302 topics in this forum

    • 2 replies
    • 128 views
    • 1 reply
    • 118 views
    • 1 reply
    • 81 views
    • 10 replies
    • 4.5k views
    • 1 reply
    • 122 views
    • 1 reply
    • 100 views
    • 1 reply
    • 136 views
    • 6 replies
    • 6.9k views
    • 2 replies
    • 188 views
    • 1 reply
    • 125 views
    • 1 reply
    • 48 views
    • 4 replies
    • 189 views
    • 1 reply
    • 125 views
    • 1 reply
    • 110 views
    • 0 replies
    • 73 views
    • 0 replies
    • 114 views
    • 1 reply
    • 142 views
    • 2 replies
    • 167 views
    • 1 reply
    • 181 views
    • 1 reply
    • 133 views
    • 1 reply
    • 90 views
    • 1 reply
    • 140 views
    • 1 reply
    • 134 views
  1. Exit code 1

    • 1 reply
    • 185 views
  2. Crashing

    • 3 replies
    • 152 views


  • Posts

    • Do not put DeferredRegister and their entries in separate classes. It can lead to issues due to unloaded classes. Using the empty register method is an ugly hack and not necessary.
    • I'm trying to register an object that uses other items in the class but I'm not sure how to make it register properly   Blueprints.java: (creating new blueprint)   public class Blueprints { private static final List<Blueprint.Resource> SKANA_RESOURCES = Arrays.asList( new Blueprint.Resource(Items.STICK, 1), new Blueprint.Resource(Resources.MORPHICS.get(), 1) ); public static final RegistryObject<Item> SKANA_BLUEPRINT = Registration.ITEMS.register("skana_blueprint", () -> new Blueprint(new Item.Properties().tab(TennoMC.TAB_TENNO), SKANA_RESOURCES, Swords.SKANA.get()) ); public static void register() {} } Blueprint.java: (my new class) public class Blueprint extends Item { public List<Resource> resources; public Item outputItem; public Blueprint(Properties properties, List<Resource> resources, Item outputItem) { super(properties); this.resources = resources; this.outputItem = outputItem; } public static class Resource { public final Item item; public final int amount; public Resource(Item item, int amount) { this.item = item; this.amount = amount; } } } Registration.java: public class Registration { public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, TennoMC.MOD_ID); public static void init() { IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus(); ITEMS.register(eventBus); } } TennoMC.java: public TennoMC { registerModAdditions(); } private void registerModAdditions() { // Inits additions Registration.init(); // Inits in game items Resources.register(); Blueprints.register(); }  
    • Then, Explain to me how to do the exact same thing  in the correct way... as I've not seen hide nor hair of it of how to properly do it. For a very select few blocks,  have a custom block class (say SandBlock or Gravelblock) with gravity override, and still retain the same namespace as if it wasn't there (minecraft:sand , as exampe)   If you actually wanna be helpful, explain how that's done and actually explain things.   It's clear I'm not sure how to pull it off  with the same requirement checked off.   -- Saying 'Don't do it that way' isn't helpful, when it's not clear how to do it 'the other way' & still achieve the same goal.
    • Your Java installation is borked. Reinstall Java.
    • I want to start a forge server, but if I run server.jar nothing will happen. If I try it with cmd it says:   Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object   I have Java 8 and Windows 10, can someone help me?
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.