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>
9 lines
356 B
MCFunction
9 lines
356 B
MCFunction
# Bail out if MCFS has already been constructed
|
|
#execute if score _mcfstd_is_constructed _mcfstd_var matches 1 run return run function z_:false
|
|
|
|
# Set up scoreboard
|
|
scoreboard objectives add _mcfstd_var dummy
|
|
scoreboard objectives add _mcfstd_reg dummy
|
|
|
|
# Set flag that MCFS has been constructed
|
|
scoreboard players set _mcfstd_is_constructed _mcfstd_var 1
|