onDroppedByPlayer
玩家丢弃物品时检测
判断条件: 丢弃时 检测时间: 丢弃前
函数效果:当丢弃该物品时可使用 itemstack || player || world 类方法
itemstack.setStackSize(0)
//设置物品数量为0
player.sendMessage("你抛弃了我。")
//说句话
world.setWeather("rain", 200)
//下十秒雨最后更新于
这有帮助吗?
玩家丢弃物品时检测
判断条件: 丢弃时 检测时间: 丢弃前
函数效果:当丢弃该物品时可使用 itemstack || player || world 类方法
itemstack.setStackSize(0)
//设置物品数量为0
player.sendMessage("你抛弃了我。")
//说句话
world.setWeather("rain", 200)
//下十秒雨最后更新于
这有帮助吗?
这有帮助吗?