-
-
Couldn't load subscription status.
- Fork 129
cstartup
Mohammad Sarabi edited this page Mar 21, 2025
·
1 revision
This command offers a simple way to edit startup functions. These are special functions that run automatically when you join a world or server. For more details on functions, visit the /cfunction page.
Usage Tree:
/cstartup
├─ local
│ ├─ add
│ │ └─ <command>
│ └─ edit
└─ global
├─ add
│ └─ <command>
└─ edit
-
Global Startup Function:
-
/cstartup global add <command>: This command adds the specified<command>to thestartup.mcfunctionfile located at.minecraft\config\clientcommands\functions\startup.mcfunction -
/cstartup global edit: This command opens thestartup.mcfunctionfile in your default text editor for.mcfunctionfiles, allowing you to directly edit the file. - This function is executed every time you join a world or server.
-
-
Local Startup Functions:
-
/cstartup local add <command>: This command adds the specified<command>to the startup function file, specific to that world or server, located at.minecraft\config\clientcommands\functions\ -
/cstartup local edit: This command opens the startup function file in your default text editor for.mcfunctionfiles. - These functions are executed every time you join that specific world or server.
-
Important Notes:
-
Local Function Priority: If a local startup function is defined for a world or server, it takes precedence over the global
startup.mcfunction. The global function will not execute in this case. By default, local startup functions will execute the global startup function. -
Excluding Global Functions: As a result of the above, to prevent the global startup function from running in a specific world or server, create a local startup function and either remove or comment out the line
cfunction startup.
Home |
Features |
Usage |
What is RNG |
Earthcomputer