Help me make a potion

Started by IuStrenght on

Topic category: Help with MCreator software

Active 3 years ago
Joined Aug 2015
Points:
902

User statistics:

  • Modifications: 7
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 151
Help me make a potion

So, i need your help community.. I currently have to make 2 potions.. I make them, but i can't drink them if i'm full hunger.
So, how do i resolve this?

Active 3 years ago
Joined Aug 2015
Points:
902

User statistics:

  • Modifications: 7
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 151
Bump..Does anyone know if i
Sun, 12/11/2016 - 07:16

Bump..Does anyone know if i can do a drinkable potion without needing to be "hungry" ?

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
Put "setAlwaysEdible();" in
Sun, 12/11/2016 - 10:34

Put "setAlwaysEdible();" in the constructor of your food item.

Active 3 years ago
Joined Aug 2015
Points:
902

User statistics:

  • Modifications: 7
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 151
RE:Put "setAlwaysEdible();" in
Sun, 12/11/2016 - 15:11

@#2 Exactly where? In the source code ?

Active 1 year ago
Joined Aug 2013
Points:
1162

User statistics:

  • Modifications: 4
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 737
Of course that in the source
Sun, 12/11/2016 - 21:15

Of course that in the source code. 
(By the way , contructor in code looks like the bold part here:

public static class ItemPotion extends ItemFood{

public ItemPotion(){

 

}

}

)

Active 3 years ago
Joined Aug 2015
Points:
902

User statistics:

  • Modifications: 7
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 151
Thanks Nuparu00 !!  
Mon, 12/12/2016 - 08:54

Thanks Nuparu00 !!

 

Active 6 years ago
Joined Mar 2016
Points:
841

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 189
RE:Thanks Nuparu00 !! 
Mon, 12/12/2016 - 17:53

I think you can find where exactly to put that code by comparing golden apple and, for example, steak code.