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.

liangmi

Members
  • Joined

  • Last visited

  1. liangmi changed their profile photo
  2. Today I am learning how to create an item in forge But I have some small problems when naming item His name has always been item.ITEM_ Name (set with settranslationkey (name).Name) Like my Genshin_ stone Then his name is item.genshin_ stone.name There is no problem with the texture //itemBase class public class ItemBase extends Item implements IHasModel { private Item item = new Item(); public ItemBase(String name, CreativeTabs tab, int maxStackSize){ //setUnlocalizedName(name); // this.setTranslationKey(name); this.setMaxStackSize(maxStackSize); this.setTranslationKey(name); this.setRegistryName(name); this.setCreativeTab(tab); ModItems.ITEMS.add(this); }; @Override public void registerModels(){ cn.lmfans.genshin.genshin.proxy.ClientProxy.registerItemRenderer(this, 0, "inventory"); // genshin.CommonProxy.registerItemRenderer(this, 0, "inventory"); } } //ModItems class public class ModItems { public static final List<Item> ITEMS = new ArrayList<Item>(); public static final Item GENSHIN_STONE = new ItemBase("genshin_stone", CreativeTabs.MATERIALS,160); // public static final Item genshinStone = new Item(); } Please teach me how to solve this problem. He has stuck me for several days Solutions used: Try en_us.json Try en_US.json Try en_US.lang Try another language.Lang Try another language.Json Try adding pack.mcmeta Try using setunlicalizedname (although not found)

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.