iMoonDay
我看网上教程最高也只有1.19.2,而且有很多功能没找到对应的教程,比如我正在找的:以玩家为圆心的一定半径内寻找实体并对实体进行操作

吕易天
public static List<Entity> getEntities(World world, Position pos, double dis, @Nullable Entity except, @Nullable Predicate<Entity> p)
    {
        return world.getEntities(except,new Box(pos.getX()+dis,pos.getY()+dis,pos.getZ()+dis,pos.getX()-dis,pos.getY()-dis, pos.getZ()-dis),p);
    }

吕易天
本帖最后由 吕易天 于 2023-2-5 23:58 编辑

https://fabricmc.net/wiki/zh_cn:start
就是有些页面还没中文翻译,看英文的就可以了

iMoonDay
吕易天 发表于 2023-2-5 23:49
public static List getEntities(World world, Position pos, double dis, @Nullable Entity except, @Null ...

无法解析 'World' 中的方法 'getEntities'

iMoonDay
吕易天 发表于 2023-2-5 23:56
https://fabricmc.net/wiki/zh_cn:start
就是有些页面还没中文翻译,看英文的就可以了
...

我看过了,但是我不知道我需要的在哪里找

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