mirror of
https://codeberg.org/vlw/mcfstd.git
synced 2026-04-12 22:29:39 +02:00
So it turns out it will be much harder to create namespaced instances of this datapack like we initially thought. It might be worth considering in the future, but we would not be able to use any functions that we add with this library by the library itself, since the namespace change will make all internal function calls point to an undefined target. So we will bundle this as a datapack for now. Reviewed-on: https://codeberg.org/vlw/mcfstd/pulls/1 Co-authored-by: vlw <victor@vlw.se> Co-committed-by: vlw <victor@vlw.se>
11 lines
296 B
MCFunction
11 lines
296 B
MCFunction
function z_:construct
|
|
|
|
function z_:stdin { v: 1 }
|
|
|
|
$scoreboard players operation _reg_a _mcfstd_reg = $(a) _mcfstd_var
|
|
|
|
$scoreboard players operation _reg_a _mcfstd_reg -= $(b) _mcfstd_var
|
|
|
|
execute unless score _reg_a _mcfstd_reg matches 1..2147483647 run return fail
|
|
|
|
function z_:stdin { v: 0 }
|