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

Hi! I'm new in Forge Modding and I want to know how to make a Potion (an instant health Potion) but I can't figure out how to code it.

 

I tried making a food and add in the Item Class an EnumAction for drink, but didn't work :( So I just want to make a Potion that instantly cures the player (like the vanilla with other texture).9_9

 

Please help me, I would appreciate it so much. This is my Item class so far:

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.EnumAction;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;

public class estusFlask extends Item {
	
	public estusFlask() {
		this.setCreativeTab(CreativeTabs.tabMisc);

}
	
	@Override
	public EnumAction getItemUseAction(ItemStack stack) {
		return EnumAction.drink;
	}

}

 

1 minute ago, XmorpH said:

Hi! I'm new in Forge Modding and I want to know how to make a Potion (an instant health Potion) but I can't figure out how to code it.

You were already told, 1.7.10 is no longer supported on this forum.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Guest
This topic is now closed to further replies.

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.