iphone7s_plus
在Bukkit中有一个方法实在world里面相当于是一个spawnEntity
但是在forget的world中我并没有找到一个这样的,只看到了BlockspawnEntity这种放置方块的
有没有大佬能告诉我,放置实体的方法在哪

skyinr
使用net.minecraft.server.level.ServerLevel#addFreshEntity方法来添加实体。
坐标由实体的net.minecraft.world.entity.Entity#setPos方法设置。(moj表)

minghao233
首先forget是什么(不会是forge罢
用spawnEntity生成
然后直接改实体的pos

第一页 上一页 下一页 最后一页