Skip to content

API анықтамасы ​

Мод API-інің барлық интерфейстері mod SDK ішіндегі WIT файлдарынан жасалады. Lua модтары сол API-ді bh кестесі арқылы пайдаланады: атаулар Lua-да қалай аталады.

Version: blockheads:api@0.3.1

Интерфейстер ​

eventsGame events with priorities and cancellation.
commandsChat and console commands registered by mods.
playersConnected players.
schedulerDelayed and repeating tasks.
storageA small per-mod, per-world key-value store.
logLogging to the server console or the client log.
hostFacts about the running host and the calling mod.
servicesCross-mod services (shape only in 0.1; implemented since 0.2; across the network since 0.3.1).
channelsNamed byte channels between mods, and between a server mod and its client half.
guestCallbacks every mod exports.
typesShared types used by every other interface.
content(0.3) Content a mod declares in [content] of mod.toml and the numeric ids the world gave it, plus cosmetics: a server mod puts one of its own cosmetics on a player and the modded clients draw it.
uiMod UI on the client (IG-HUD, IG-ModUI): HUD widgets, toasts, notices and dialogs.

Әлемдер (worlds) ​

core, server-mod, client-mod

Ресми емес қауымдастық жобасы. Majic Jungle Software немесе Noodlecake компанияларымен байланысы жоқ. Ойын файлдары қамтылмаған.