!注意事项 !
1.以下说明及代码仅适用于神奇代码岛的代码编辑器。
2.代码中的某些内容可根据需要进行更改。
3.本人对代码产生错误所造成的事故与损失概不负责。
world.onPlayerJoin(({ entity }) => {
entity.ki =0
entity.stone=1
entity.player.enable3DCursor = true
entity.player.message1 = "";
entity.player.interactTimes = 0;
entity.enableInteract = true;
entity.interactRadius = 3;
entity.interactHint = "与 " + entity.player.name + " 互动";//在ID下的文字 可更改
entity.onInteract(async ({ entity, targetEntity }) => {
const result = await entity.player.dialog({
type: Box3DialogType.SELECT,
title: targetEntity.player.name,
content: `和 $