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.

sawthewhat

Members
  • Joined

  • Last visited

  1. problem solved by myself. but i still don't know where the wrong is. lock topic.
  2. my english is poor.(i'm a chinese) so I can't express it very well.sorry. i can sure the texture was found by game. but it not rendered on the item at all i asked other forge developers for help. but they don't konw how to do either. i tried to sovle it in all ways i can do. but it still show me a black-purple block Forge version: 1.10.2-12.18.1.2065 (mc 1.10.2) please help me to check my code: sawthewhat.keystand.KeyStandMod package sawthewhat.keystand; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; @Mod(name = KeyStandMod.MODNAME, version = KeyStandMod.MODVER, modid = KeyStandMod.MODID) public class KeyStandMod { public final static String MODID = "keystand"; public final static String MODNAME = "KeyStand"; public final static String MODVER = "1.0"; @SidedProxy(clientSide = "sawthewhat.keystand.ClientProxy", serverSide = "sawthewhat.keystand.ServerProxy") public static ServerProxy proxy; @EventHandler public void init(FMLInitializationEvent e) { proxy.init(); } } sawthewhat.keystand.ServerProxy package sawthewhat.keystand; import net.minecraft.client.renderer.ItemMeshDefinition; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.fml.common.registry.GameRegistry; import sawthewhat.keystand.item.ItemKeyStand; public class ServerProxy { protected ItemKeyStand ks; public void init() { ks = new ItemKeyStand(); ks.setRegistryName("keystand"); ks.setUnlocalizedName("keystand.keystand"); GameRegistry.register(ks); } } sawthewhat.keystand.ClientProxy package sawthewhat.keystand; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraftforge.client.model.ModelLoader; public class ClientProxy extends ServerProxy { public void init() { super.init(); ModelLoader.setCustomModelResourceLocation(super.ks, 0, new ModelResourceLocation("keystand:keystand", "inventory")); } } ItemKeyStand is almost empty package sawthewhat.keystand.item; import net.minecraft.item.Item; public class ItemKeyStand extends Item { } assets/keystand/models/item/keystand.json { "parent":"builtin/generated", "textures": { "layer0": "keystand:keystand" } } texture is in assets/keystand/textures. help me to find where is the wrong.thx.

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.