目录
目录README.md

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

关于
130.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号