Skip to content

namespace global

Sub-commandNamespace
namespace global {name}

Also searchable as: namespace global · shared variables

namespace global makes the global namespace name current. A global namespace is shared by every script running in EasyUO Reforged, in any tab: what one script sets, the others read, as long as they switch to the same namespace first.

name: A name made of letters, digits and _, not starting with a digit. Case does not matter.

Two scripts, in two tabs:

; first script
namespace global shared
set !status mining
pause
halt
; second script
namespace global shared
display ok The first script is !status
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.