你不会S币 发表于 2024-8-29 09:39:09

感谢分享

你不会S币 发表于 2024-8-29 09:38:31

学到了!

Yym666 发表于 2024-8-26 17:32:35

文本

已注销_AUd441 发表于 2024-8-21 10:17:36


import { EntityComponentTypes, ItemStack, Player } from '@minecraft/server';
import { MinecraftItemTypes } from '@minecraft/vanilla-data';

function giveAwesomeSword(player: Player) {
    const diamondAwesomeSword = new ItemStack(MinecraftItemTypes.DiamondSword, 1);
    diamondAwesomeSword.setLore([
      '§c§lDiamond Sword of Awesome§r',
         '+10 coolness', '§p+4 shiny§r'
    ]);

    // hover over/select the item in your inventory to see the lore.
    const inventory = player.getComponent(EntityComponentTypes.Inventory);
    if (inventory === undefined || inventory.container === undefined) {
      return;
    }

    inventory.container.setItem(0, diamondAwesomeSword);
}

oeoeoe 发表于 2024-7-25 02:00:56

确实看起来更好看了 感谢大佬分享

已注销_AUd441 发表于 2024-7-21 10:14:58

コマンドブロック

80岁小孩 发表于 2024-7-14 13:14:41

懂了感谢教学

已注销_AUd441 发表于 2024-7-14 12:12:58

TEST_测试https://s21.ax1x.com/2024/07/14/pk59Z4A.png

已注销_AUd441 发表于 2024-7-14 11:23:15

114514

已注销_AUd441 发表于 2024-7-14 11:21:00

114514
页: 1[2]34567
查看完整版本: 【BGM】帖子排版技巧【超级详细】