You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text editor and ctrl+i slots editor will both want command palettes.
Minecraft has the Brigadier command system.
we can register SFM subcommands that will only show if certain conditions are met.
The command palette will iterate these subcommands and filter to the ones that are usable at this moment.
For example, the "assign slots incrementing indices" action will only be valid while Minecraft.screen instanceof SlotEditorScreen
We will want our own Registry<Action> from which we can drive a brigadier compatibility conversion or whatever using our new Action type.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The text editor and ctrl+i slots editor will both want command palettes.
Minecraft has the Brigadier command system.
we can register SFM subcommands that will only show if certain conditions are met.
The command palette will iterate these subcommands and filter to the ones that are usable at this moment.
For example, the "assign slots incrementing indices" action will only be valid while
Minecraft.screen instanceof SlotEditorScreenWe will want our own
Registry<Action>from which we can drive a brigadier compatibility conversion or whatever using our newActiontype.See also:
Beta Was this translation helpful? Give feedback.
All reactions