A searchable Minecraft ID list, containing all item and block IDs from the latest version of Minecraft (1.18) and lower versions (1.17, 1.16, 1.15, 1.14, 1.13, 1.12, 1.8, etc).
Search an interactive list of Minecraft blocks, items, mobs, entities, potions, ids and data values.
componentId:T The identifier of the component (e.g., 'minecraft:food'). If no namespace prefix is specified, 'minecraft:' is assumed. Available component IDs are those in the@minecraft/server.ItemComponentTypesenum and custom component IDs registered with the@minecraft/server.ItemComponentRegistry...
minecraft/server Changelog BlockComponentTypes BlockPistonState BlockVolumeIntersection CustomComponentNameErrorReason Direction DisplaySlotId DyeColor EasingType EnchantmentSlot EntityComponentTypes EntityDamageCause EntityInitializationCause EquipmentSlot FluidType GameMode GameRule HudElement HudVisibility InputMode Inpu...
[INFO] Server started. 这个时候如果有玩家连接进来或者退出了服务器,你可以看到类似的消息通知: [INFO] Player connected: MoonstoneTalaxy, xuid: 25354361236725 [INFO] Player disconnected: MoonstoneTalaxy, xuid: 25354361236725 这里connected后对应的是玩家的 Xbox 账号名,而xuid后为账号对应的唯一 ID 。这...
import{ ItemStack, EntityInventoryComponent, BlockInventoryComponent, DimensionLocation }from"@minecraft/server";import{ MinecraftBlockTypes, MinecraftItemTypes, MinecraftEntityTypes }from"@minecraft/vanilla-data";functioncontainers(log: (message:string, status?:number) =>void, targetLocation: DimensionLocation...
trackId:string musicOptions?:MusicOptions=null Notes: This function can't be called in read-only mode. This function can throw errors. Examples playMusicAndSound.ts TypeScript import{ world, MusicOptions, WorldSoundOptions, PlayerSoundOptions, DimensionLocation }from"@minecraft/server";functionplayMu...
数据,由字段依次连接而成,具体包含哪些字段取决于包ID。 四、mc握手和SLP 通过Server List Ping(SLP)可以得到服务器的有关信息(有几个玩家在线,服务器的名字版本号,装了哪些mod)和连接的时延 具体过程如下: 1、客户端发送Handshake包 Handshake包 例子: ...
使用XFPT连接服务器后,双击文件列表顶端的“…”回到根目录下,新建一个名为“server”的文件夹(名字也可以随意,足够区分即可),并将服务器核心置入此目录下。然后我们需要一个启动脚本,命名为“start.sh”,可以使用记事本编辑。如后续winser开服启动脚本后缀则为.dat。
服务端内核被放置于服务端文件中META-INF/versions.list文件所定义的位置,一般为META-INF/versions/版本名/server-版本名.jar。 执行服务端文件时,其内部的META-INF/libraries和META-INF/versions两个文件夹会被原样解压到当前工作目录中。 可使用bundlerRepoDir属性指定解压的目标目录。