食用此物时检测
判断条件: 食用时 检测时间: 食用后
函数效果:当食用该物品时可使用 itemstack || player || world 类方法
player.sendMessage(itemstack.getDamage()) //获取该物品meta player.addPotionEffect("moveSpeed", 2400, 0) //给予玩家 速度 2:00 I world.setBlock(player.getLookX(),player.getLookY(),player.getLookZ(),"minecraft:diamond_block") //将目标方块变成钻石块
最后更新于4年前
这有帮助吗?