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.

Helinos

Members
  • Joined

Everything posted by Helinos

  1. This worked If anyone ever references this (which they probably won't) I moved "proxy.init" in basic.java from init to preinit
  2. I'm new to modding and I'm currently in the process of making my first mod, all it does at the moment is add two items. However, I can't seem to find the reason to why the items won't render (Missing model), I have the Jsons, Pngs, i believe I have everything set up correctly, the items show up in game, and I can't even find an error in the console. But they don't have a model. Minecraft 1.10.2 Forge 1.10.2-12.18.3.2185 Eclipse neon.2 Code: -Download https://www.dropbox.com/s/8rs0dhk9hzdc8z1/Basic.zip?dl=0 -Basic.java package com.helinos.basic; import com.helinos.basic.init.ModItems; import com.helinos.basic.proxy.CommonProxy; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = Reference.ACCEPTED_VERSIONS) public class Basic { @Instance public static Basic instance; @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS) public static CommonProxy proxy; @EventHandler public void preInit(FMLPreInitializationEvent event) { System.out.println("Pre Init"); ModItems.init(); ModItems.register(); } @EventHandler public void init(FMLInitializationEvent event) { System.out.println("Init"); proxy.init(); } @EventHandler public void postInit(FMLPostInitializationEvent event) { System.out.println("Post Init"); } } -Reference.java package com.helinos.basic; public class Reference { public static final String MOD_ID = "helinosbasicmod"; public static final String NAME = "Helinos' Basic Mod"; public static final String VERSION = "1.0"; public static final String ACCEPTED_VERSIONS = "[1.10.2]" ; public static final String CLIENT_PROXY_CLASS = "com.helinos.basic.proxy.ClientProxy"; public static final String SERVER_PROXY_CLASS = "com.helinos.basic.proxy.ServerProxy"; public static enum BasicItems { SMALLDIAMONDCHUNK("smalldiamondchunk", "ItemSmallDiamondChunk"), LARGEDIAMONDCHUNK("largediamondchunk", "ItemLargeDiamondChunk"); private String unlocalizedName; private String registryName; BasicItems(String unlocalizedName, String registryName) { this.unlocalizedName = unlocalizedName; this.registryName = registryName; } public String getUnlocalizedName() { return unlocalizedName; } public String getRegistryName() { return registryName; } } } -ModItems.java package com.helinos.basic.init; import com.helinos.basic.Reference; import com.helinos.basic.items.ItemLargeDiamondChunk; import com.helinos.basic.items.ItemSmallDiamondChunk; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModItems { public static Item smalldiamondchunk; public static Item largediamondchunk; public static void init() { smalldiamondchunk = new ItemSmallDiamondChunk(); largediamondchunk = new ItemLargeDiamondChunk(); } public static void register() { GameRegistry.register(smalldiamondchunk); GameRegistry.register(largediamondchunk); } public static void registerRenders() { registerRender(smalldiamondchunk); registerRender(largediamondchunk); } private static void registerRender(Item item) { ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); } } -SmallDiamondChunk.java & Json -Smaller Files Log Screenshot:

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.