Variables and procedures

Started by Amagis21 on Sun, 12/09/2018 - 09:52

Topic category: Help with modding (Java Edition)

Last seen on 20:32, 11. Dec 2018
Joined Dec 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Variables and procedures
Sun, 12/09/2018 - 09:52

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. :)

Last seen on 17:43, 19. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
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 20:32, 11. Dec 2018
Joined Dec 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 16:12, 19. Oct 2020
Joined Nov 2018
User points:

User statistics:

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