A Swift library for writing and generating Minecraft datapacks.
- Use programming features like iterations and conditionals
- Automatic pack generation (no need to remember the file structure)
- Strongly-typed commands to ensure correct mcFunctions
- Declarative syntax for writing packs, namespaces, and functions
Click to show list
- ? help
- advancement
- attribute
- ban
// Syntax Minecraft.Ban( _ players: EntitySelector..., // variadic list of player entity selectors (must provide at least one) reason: String? = nil // optional ban message ) // Examples // Ban all players Minecraft.Ban(.allPlayers) // Ban two named players, providing reason Minecraft.Ban(.namedPlayer("Alex"), .namedPlayer("Steve"), reason: "Disorderly conduct")
- ban-ip
- banlist
- bossbar
- clear
- clone
- data
- datapack
- debug
- defaultgamemode
- deop
- difficulty
- effect
- enchant
- execute
- experience xp
- fill
- forceload
- function
- gamemode
- gamerule
- give
- item
- jfr
- kick
- kill
- list
- locate
- locatebiome
- loot
- me
- msg tell w
- op
- pardon
- pardon-ip
- particle
- perf
- playsound
- publish
- recipe
- reload
- save-all
- save-off
- save-on
- say
- schedule
- scoreboard
- seed
- setblock
- setidletimeout
- setworldspawn
- spawnpoint
- spectate
- spreadplayers
- stop
- stopsound
- summon
- tag
- team
- teammsg tm
- teleport tp
- tellraw
- time
- title
- trigger
- weather
- whitelist
- worldborder