mod-dev-talk Sunday 8 November 2020

80 messages4 people

  1. AzzyypaarasTeam

    public void onEntityCollision(BlockState state, World world, BlockPos pos, Entity entity) {
            if (!world.isClient() && !entity.hasVehicle() && !entity.hasPassengers() && ((AetherEntity) entity).canUseAetherPortal()) {
                BlockPos target;
                ServerWorld serverWorld = (ServerWorld) world;
                RegistryKey<World> targetRegKey = world.getRegistryKey() != AetherDimension.AETHER_WORLD_KEY ? AetherDimension.AETHER_WORLD_KEY : World.OVERWORLD;
                ServerWorld targetWorld = serverWorld.getServer().getWorld(targetRegKey);
                if(targetRegKey == AetherDimension.AETHER_WORLD_KEY)
                    target = new BlockPos(entity.getX() / 8, entity.getY(), entity.getZ() / 8);
                else
                    target = new BlockPos(entity.getX() * 8, entity.getY(), entity.getZ() * 8);
                ChunkPos chunkPos = new ChunkPos(target);
                targetWorld.getChunkManager().setChunkForced(chunkPos, true);
                int y = targetWorld.getTopY(Heightmap.Type.MOTION_BLOCKING_NO_LEAVES, target.getX(), target.getZ());
                targetWorld.getChunkManager().setChunkForced(chunkPos, false);
                if(entity instanceof ServerPlayerEntity) {
                    serverWorld.getChunkManager().addTicket(ChunkTicketType.POST_TELEPORT, chunkPos, 1, entity.getEntityId());
                    ((ServerPlayerEntity) entity).teleport(targetWorld, target.getX(), y, target.getZ(), entity.yaw, entity.pitch);
                }
            }
  2. Deleted User

    my god
  3. AzzyypaarasTeam

    Oh boy, I am not going to be able to sample heightmaps for y
  4. Deleted User

    can I make it worse?
  5. AzzyypaarasTeam

    Loop time
  6. Deleted User

    Just comment it
  7. AzzyypaarasTeam

    no, :iritat:
  8. Deleted User

    social distance the code ;P
  9. CDAGamingTeam

    Just put it all on one line
  10. Deleted User

    ^^^^
  11. AzzyypaarasTeam

    :yeefuckinhaw:
  12. Deleted User

    do a min.slim.js 😄
  13. AzzyypaarasTeam

    :aaa:
  14. CDAGamingTeam

    Mmm, this be lookin nice
    Image shared by CDAGaming
  15. cr24Team

    check the new issue i posted :ohno:
  16. CDAGamingTeam

    Aware of it, both it and bone meal won't really work until feature gen is further along to allow it(edited)
  17. cr24Team

    okay
  18. AzzyypaarasTeam

    This is fine
    Image shared by Azzyypaaras
  19. Deleted User

    Azzy
  20. AzzyypaarasTeam

    👀
  21. CDAGamingTeam

    o.o
  22. AzzyypaarasTeam

    That's a new one
    Image shared by Azzyypaaras
  23. Deleted User

    Dafuq did you do now
  24. AzzyypaarasTeam

    Surprisingly, it is actually very difficult to prevent the player from getting stuck in a teleporation pingpong match(edited)
  25. Deleted User

    Just add a delay like the nether portal(edited)
  26. AzzyypaarasTeam

    real shit
  27. Deleted User

    Omfg
  28. cr24Team

    hmmm
  29. AzzyypaarasTeam

    fuck me it is just what I feared
  30. Deleted User

    Stop swearing and say it for fucks sake lul
  31. AzzyypaarasTeam

    This is going to be a pain in the ass to deal with
  32. Deleted User

    Mixins be like brrr
  33. CDAGamingTeam

    Surprisingly, it is actually very difficult to prevent the player from getting stuck in a teleporation pingpong match
    Yea, I recognize that, that's an oldie from Kinos port too xD
  34. AzzyypaarasTeam

    Aether be lookin' funky
    Image shared by Azzyypaaras
  35. AzzyypaarasTeam

    platform gen pog
    Image shared by Azzyypaaras
  36. cr24Team

    i don't think there should be holystone bricks in there
  37. Deleted User

    You need to check if the player is under y = -1 and take damage
  38. AzzyypaarasTeam

    What?
  39. Deleted User

    [kalucky0/The-Aether] Issue opened: #16 Having your head in a block in the Aether sends you to the overworld
  40. cr24Team

    lol weirdest bug yet
  41. Deleted User

    When the player falls off the aether
  42. AzzyypaarasTeam

    :concern:
  43. Deleted User

    It tps when they take damage
  44. cr24Team

    I was in creative mode...
  45. Deleted User

    So check if the player is under y=-1
  46. cr24Team

    oh thats weird
  47. Deleted User

    Well, it works to cancel void death
  48. cr24Team

    I see
  49. AzzyypaarasTeam

    WHOMSTS HAS MADE ALL OF THE CONSTANT FIELDS LOWERCASE
    Image shared by Azzyypaaras