-
Notifications
You must be signed in to change notification settings - Fork 0
Weather Commands
SashaKYotoz edited this page Jun 9, 2026
·
1 revision
Main class to register custom weather command.
Registers a custom weather type into /weather command.
SolRegistries.WEATHER.register("inferno", (source, duration) -> {
if (duration <= 0)
return;
source.sendSuccess(() -> Component.literal("Set weather to Inferno for " + duration + " ticks"), true);
});-
nameThe name of parameter for /weather command (e.g. /weather rain). -
sourceThe result action of command execution. -
duractionAn amount of time in ticks.