Help me make a potion

Started by IuStrenght on

Topic category: Help with MCreator software

Joined Aug 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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?

Joined Aug 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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" ?

Joined Aug 2013
Points:

User statistics:

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

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

Joined Aug 2015
Points:

User statistics:

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

@#2 Exactly where? In the source code ?

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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(){

 

}

}

)

Joined Aug 2015
Points:

User statistics:

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

Thanks Nuparu00 !!

 

Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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.