Variables and procedures

Started by Amagis21 on

Topic category: Help with modding (Java Edition)

Last seen on 01:06, 21. Dec 2022
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Variables and procedures

So ive seen the "element creator:variables" section, but it doesnt really explain how to use them or what their used for. My main goal is to make a drink bottle that when its drank from, interacts with another procedure by changing the random tick procedure it has applied to it already. Right now that procedure has a very low chance, like "random < 0.0000001" and i want it to become higher once the drink is....well....drank! And once the procedure is activated with its now higher chance, to then drop back down to its original low chance. Pleas and thank you in advance for any suggestions. :)

You can use variables in…
Sun, 12/09/2018 - 16:27

You can use variables in conditions and you can increase or decrease them in the case of numerical variables. You could use them to achieve your desired effect.

Last seen on 01:06, 21. Dec 2022
Joined Dec 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you for the reply, but…
Mon, 12/10/2018 - 10:59

Thank you for the reply, but i gotta ask, how do i make said variable? when i go to the variable tab and try to add a variable, all it asks for is a name and what type it is. theres no sub choices, or editing that i can see or find. on the older version i could make it so that if a variable was true, lots of other things would go into action, but unless i can make this variable, i cant see that happening with this update. please help?? 

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Do you still need help with…
Thu, 01/03/2019 - 21:35

Do you still need help with this?

If so reply and I will help you.