How can i make food like golden apple?

Started by M3Musik on Fri, 03/25/2016 - 12:51
Last seen on 17:31, 18. Mar 2018
Joined Mar 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How can i make food like golden apple?
Fri, 03/25/2016 - 12:51

I want make food like golden apple with potion effect and eat without hunger.

 

 

 

Last seen on 00:45, 2. Mar 2018
Joined Jul 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Make an item and on
Fri, 03/25/2016 - 14:20

Make an item and on rightclick play sound random.eat or whatever it is and add potion effect and consume the item in your inventory.

Last seen on 18:26, 18. Oct 2018
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Everytime that I tried to add
Mon, 02/20/2017 - 17:54

Everytime that I tried to add something that makes potion effects, the effect lasts for less than a second.

So, what's the unity that I need for the potion duration?

For example, if I want a potion effect for 10 second, wich number do I need to write?

Thanks.

Last seen on 14:49, 7. Aug 2018
Joined Feb 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Make a regular food, but
Sun, 02/26/2017 - 17:41

Make a regular food, but select 0 for the hunger fullness (I think 0 works, haven't tested it.)

In the events, select "When eaten" and choose "Add potion effect." Fill in the parameters, but for duration you put in the number of seconds * 20. (e.g, for 5 seconds - 5 * 20 = 100, so put in 100).

 

Hope this helped!

Last seen on 18:26, 18. Oct 2018
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:Make a regular food, but
Sun, 02/26/2017 - 18:33

So a second is 20. Thanks