Variables and procedures

Started by Amagis21 on

Topic category: Help with Minecraft modding (Java Edition)

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.

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?? 

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.
 

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How? When I create a new…
Thu, 11/21/2024 - 19:22

How? When I create a new procedure and search for "var" it already shows zero results, there are no procedure blocks for variables, how do I change the item stored in an itemStack variable with procedures?