使用时
判断条件: 使用时 检测时间: 使用中
函数效果:当单击右键时可使用 itemstack || player || tickCount || world 类方法
itemstack.setValues(itemstack.getItemName(), itemstack.getStackSize(), itemstack.getDamage() + 1) //设置物品堆meta + 1 player.setMaxHealth(40) //设置生命上限为40 player.sendMessage(tickCount) //获取右键tick总时 (与maxUsingDuration相关) world.spawnParticle("largesmoke", player.getLookX() + 0.5, player.getLookY() + 1, player.getLookZ() + 0.5, 0.0, 0.75, 0.0) //在看向位置生成一道粒子
最后更新于4年前
这有帮助吗?