如题怎么将“玩家手持物品未被附魔”设置为条件
如下
player is holding a 4478
我想要玩家手持的4478这个物品是未被附魔的,该怎么写
如下
player is holding a 4478
我想要玩家手持的4478这个物品是未被附魔的,该怎么写
捕捉一只大冷冷
if player is holding 4478:
player's tool is not enchanted
message "手持物4478未附魔"
if player's tool is a 4478 of sharpness:
message "4478附魔了锋利"
if tool of the player is enchanted with efficiency 2:
message "玩家手持的物品附魔了效率2"
disenchant the player's tool
message "取消其附魔"
enchant the player's tool with sharpness 5
message "附魔锋利5"
player's tool is not enchanted
message "手持物4478未附魔"
if player's tool is a 4478 of sharpness:
message "4478附魔了锋利"
if tool of the player is enchanted with efficiency 2:
message "玩家手持的物品附魔了效率2"
disenchant the player's tool
message "取消其附魔"
enchant the player's tool with sharpness 5
message "附魔锋利5"