Help me make a potion

Started by IuStrenght on Sat, 12/10/2016 - 20:09

Topic category: Help with MCreator software

Last seen on 19:45, 15. Dec 2018
Joined Aug 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help me make a potion
Sat, 12/10/2016 - 20:09

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?

Last seen on 19:45, 15. Dec 2018
Joined Aug 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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" ?

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

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

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

Last seen on 19:45, 15. Dec 2018
Joined Aug 2015
User points:

User statistics:

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

@#2 Exactly where? In the source code ?

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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(){

 

}

}

)

Last seen on 19:45, 15. Dec 2018
Joined Aug 2015
User points:

User statistics:

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

Thanks Nuparu00 !!

 

Last seen on 17:47, 12. May 2018
Joined Mar 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.