Is it possible...

Started by Hazzah_ on

Topic category: Feature requests and ideas for MCreator

Last seen on 17:20, 17. Mar 2024
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible...

...to add some more events to Food Items?

I wanted to make Rotting Food mechanic, but I don't see any other way to do it, than some kind of "random tick event" or maybe coding.

Last seen on 02:28, 7. May 2023
Joined Jul 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could make a local…
Wed, 05/29/2019 - 04:06

You could make a local variable in a procedure called Rot. Make the procedure only run every time a player sleeps or something. Every time a player sleeps your whatever you want, add 1 to the Rot var. In that same procedure check for when Rot >= 5 or something, check if the player has your food, then remove that food and add the rotted food. This might work.

Last seen on 16:29, 12. May 2020
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wanted to make Rotting…
Sun, 04/26/2020 - 23:08

I wanted to make Rotting Food mechanic, but I don't see any other way to do it, than some kind of "random tick event" or maybe coding.

 

Hi, i wanted to make rotten food mechanic too so you can tell me how you did it (if you did it of course) 

Last seen on 11:45, 23. Jan 2023
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe you can make a few…
Fri, 05/08/2020 - 07:10

Maybe you can make a few different items and then when (?) tick the item gets removed and the rotten one comes in

 

hope you can do this :)