Wait x amount of ticks then (Server side) should be able to work with using local variables

Started by andrejzyulin on

Topic category: Advanced modding

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wait x amount of ticks then (Server side) should be able to work with using local variables

The wait  x ticks function is really helpful for a lot of functions especially attacks with delayed projectiles. It is a little bit weird to understand inside of a loop for example, but my main problem with it is that local variables can't be used inside it. Local variables are the same as global just defined in the procedure or basically like nbt 's.  So why can't local variables be used. Please reconcile about the use of the wait x ticks function and try to make it easier to use.

By the design of the Java,…
Fri, 12/13/2024 - 15:12

By the design of the Java, one can not pass local variables there, because they or references they hold could change during the delay duration

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
alright, but how are nbt…
Sat, 12/14/2024 - 17:54

alright, but how are nbt tags different? They are essentially variables also abale to change during the delay duration?