Skip to content

sections

ShaneBeee edited this page Feb 1, 2026 · 12 revisions

Sub Command

  • Description: Creates a sub command for a top level command or another sub command.
  • Pattern: sub command <.+>
  • Since: 1.0.0

Drop Item

  • 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

Execute In World

  • 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

Spawn NPC

  • 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

SecAsync

  • Pattern: async[hronous[ly]]

SecCase

  • Patterns:
    • (case|when) %*objects%
    • ([by] default|otherwise)

SecChance

  • Pattern: chance of %number%[(1:%)]

Condition

  • 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

SecFilter

  • Pattern: filter %~objects%

SecFlatMap

  • Pattern: (flat map %~objects%|map %~objects% flat)

Loop

  • Description: Loops over all the values in a list or loop x number of times.
  • Patterns:
    • loop %integer% times
    • loop %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

SecMap

  • Pattern: map %~objects%

SecSwitch

  • Pattern: (switch|given|match) %object%

While Loop

  • 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

Clone this wiki locally