minity icon indicating copy to clipboard operation
minity copied to clipboard

Feature request: Allow use of constants for defining `every` period

Open AgainPsychoX opened this issue 3 years ago • 0 comments

Feature request: Allow use of constants (and variables?) for defining every period, substitute with and without the time unit.

Motivation example

every {?fuel_per_coal}s {	
	say doing something
}

Note

Following compiles, but result in invalid mcfunction generation:

every ?fuel_per_coal {
	say doing something
}

(generated mcfunction)

say doing something
schedule function zzz_minity:minecarts_nowadays/_b_8 180null

despite how the constant was defined, both:

?fuel_per_coal = 180
?fuel_per_coal = 180s

AgainPsychoX avatar Dec 09 '21 22:12 AgainPsychoX