Jump to content

[1.7.10] How do I make a Potion? (Not Potion Effect)


Recommended Posts

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;
	}

}

 

Posted
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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.