docs-test

ScriptAPI v1.20.40の主な変更点

公式のチェンジログ | npm

バージョンの更新

イベント

1world.afterEvents.playerInteractWithEntity.subscribe(event => {
2  if (event.target.typeId === "minecraft:pig") {
3    event.player.sendMessage("ぶー");
4  }
5});

Block

DynamicProperty

登録不要で使えるようになった

Entity

1if (player.matches({ gameMode: "creative" })) {
2  // creative!!
3}

Edit on Github