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.

Featured Replies

Posted

The config file gets made but id's in the config dont register for the items.

	
public void initConfiguration(FMLInitializationEvent event){
	Configuration config = new Configuration(new File("config/MinespressoMod.cfg"));
	config.load();

	CoffeeID = config.get("Drinks", "Coffee", 1130).getInt();

	TeaID = config.get("Drinks", "Tea", 1131).getInt();

	HotChocolateID = config.get("Drinks", "HotChocolate", 1132).getInt();

	MinespressoID = config.get("Drinks", "Minespresso", 1133).getInt();

	CappuccinoID = config.get("Drinks", "Cappuccino", 1134).getInt();

	LatteID = config.get("Drinks", "Latte", 1135).getInt();


	SugaryHotChocolateID = config.get("Drinks", "SugaryHotChocolate", 1136).getInt();

	MagicMinespressoID = config.get("Drinks", "MagicMinespresso", 1137).getInt();

	SugaryMagicMinespressoID = config.get("Drinks", "SugaryMagicMinespresso", 1138).getInt();

	TheBombID = config.get("Drinks", "TheBomb", 1139).getInt();

	SleepyCoffeeID = config.get("Drinks", "SleepyCoffee", 1140).getInt();

	HealTeaID = config.get("Drinks", "HealTea", 1141).getInt();

	XPLatteID = config.get("Drinks", "XPLatte", 1142).getInt();

	StrengthCappuccinoID = config.get("Drinks", "StrengthCappuccino", 1143).getInt();

	MinespressoMachineID = config.get("Blocks", "DrinksMachine", 1144).getInt();

	CurrencyItemID = config.get("Currency", "Currency", 265).getInt();


	config.save();
}





// Register Regular Drinks
	public static Item Coffee = new ItemDrink(1111, 4, 4, false).setUnlocalizedName("Coffee");
	public static Item Tea = new ItemDrink(TeaID, 6, 6, false).setUnlocalizedName("Tea");
	public static Item HotChocolate = new ItemDrink(HotChocolateID, 3, 3, false).setUnlocalizedName("HotChocolate");
	public static Item Minespresso = new ItemDrink(MinespressoID, 10, 10, false).setUnlocalizedName("Minespresso");
	public static Item Cappuccino = new ItemDrink(CappuccinoID, 6, 6, false).setUnlocalizedName("Cappuccino");
	public static Item Latte = new ItemDrink(LatteID, 5, 5, false).setUnlocalizedName("Latte");

	//Register HotChocolate Drinks
	public static Item SugaryHotChocolate = new ItemSugaryDrink(SugaryHotChocolateID, 3, 3, false).setUnlocalizedName("SugaryHotChocolate");

	//Register Minespresso Drinks
	public static Item MagicMinespresso = new ItemMagicDrink(MagicMinespressoID, 3, 3, false).setUnlocalizedName("MagicMinespresso");
	public static Item SugaryMagicMinespresso = new ItemSugaryMagicDrink(SugaryMagicMinespressoID, 3, 3, false).setUnlocalizedName("SugaryMagicMinespresso");
	public static Item TheBombMinespresso = new TheBombItem(TheBombID, 14, 14, false).setUnlocalizedName("TheBombMinespresso");

	//Register Coffee Drinks
	public static Item SleepyCoffee = new ItemSleepyDrink(SleepyCoffeeID, 3, 3, false).setUnlocalizedName("SleepyCoffee");

	//Register Tea Drinks
	public static Item HealTea = new ItemHealDrink(HealTeaID, 6, 6, false).setUnlocalizedName("HealTea");

	//Latte
	public static Item XPLatte = new ItemXPDrink(XPLatteID, 5, 5, false).setUnlocalizedName("XPLatte");

	//Cappuccino 
	public static Item StrengthCappuccino = new ItemStrength(StrengthCappuccinoID, 6, 6, false).setUnlocalizedName("StrengthCappuccino");

	// Register Blocks
	public static Block DrinksMachine = new BlockDrinksMachine(1161, Material.iron).setUnlocalizedName("DrinksMachine").setHardness(3.5F);

	@EventHandler
	public void load(FMLInitializationEvent event){
		this.initConfiguration(event);
	}

  • Author

You don't need to worry about Item or BlockIDs anymore. They are assigned automatically for you.

Oh, thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.