-
Notifications
You must be signed in to change notification settings - Fork 0
sections
ShaneBeee edited this page Feb 1, 2026
·
12 revisions
- Description: Creates a sub command for a top level command or another sub command.
-
Pattern:
sub command <.+> - Since: 1.0.0
- Description: Drops the specified items.
-
Patterns:
drop %item/itemStack% at %location%drop %item/itemStack% at %location% with pickup delay %duration%drop %item/itemStack% at %location% with velocity %vector3f%drop %item/itemStack% at %location% with velocity %vector3f% [and] [with] pickup delay %duration%
- Examples:
drop ingredient_poop at location of player
drop {_itemstack} at location of player with pickup delay 10 seconds
drop {_i} at location of player with velocity vector3f(0,1,0) and with pickup delay 5 seconds- Since: 1.0.0
- Description: Executes the code inside the section in the specified world.
-
Pattern:
execute in [world] %world% - Examples:
execute in world of player:
kill player- Since: 1.0.0
- Description: Spawn an npc at a location.
-
Pattern:
spawn [(a|an)] %npcrole% at %location% - Examples:
player command /sheep:
trigger:
set {_p} to player
spawn a sheep at location of player:
send "ooOOoo a sheep has joined you" to {_p}- Since: 1.0.0
-
Pattern:
async[hronous[ly]]
-
Patterns:
(case|when) %*objects%([by] default|otherwise)
-
Pattern:
chance of %number%[(1:%)]
- Description: Executes code within its section if a condition is verified to be true.
-
Patterns:
if %=boolean%else if %=boolean%else
- Since: 1.0.0
-
Pattern:
filter %~objects%
-
Pattern:
(flat map %~objects%|map %~objects% flat)
- Description: Loops over all the values in a list or loop x number of times.
-
Patterns:
loop %integer% timesloop %objects%
- Examples:
loop 10 times:
send "hello:%loop-number%" to all players
loop all players:
add {_item} to inventory of loop-player- Since: 1.0.0
-
Pattern:
map %~objects%
-
Pattern:
(switch|given|match) %object%
- Description: This section will continue to execute/loop until the condition is no longer met.
-
Pattern:
while %=boolean% - Examples:
while {_var} > 10:
remove 1 from {_var}
wait 1 minute- Since: 1.0.0