Skip to content

A Swift library for writing and generating Minecraft datapacks

Notifications You must be signed in to change notification settings

AnachronisticTech/DatapackKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DatapackKit

A Swift library for writing and generating Minecraft datapacks.

Benefits:

  • 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

Natively supported commands

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

About

A Swift library for writing and generating Minecraft datapacks

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages