mod-dev-talk Saturday 8 January 2022

98 messages3 people

  1. SollyTeam

    Changing a 6 to a 7 be like
    Image shared by Solly
  2. Jack PapelTeam

    I'd like to think that the method is just return 7;
  3. SollyTeam

    Actually, I can do that
  4. Jack PapelTeam

    > says he can't do modifyarg > immediately responds with code featuring modifyarg
  5. SollyTeam

    Yeah I realised the issue doesn't exist anymore
  6. Jack PapelTeam

    What was the issue?
  7. SollyTeam

    Slice being awkward to match
  8. AzzyypaarasTeam

    tf are you two nerds up to
  9. Jack PapelTeam

    Alright, idk much about slice so I'll take your word for it
  10. SollyTeam

    Needing to use another parameter to determine if it should be modified
  11. SollyTeam

    Replying toAzzyypaarastf are you two nerds up to

    Enjoying mixins
  12. AzzyypaarasTeam

    :swet:
  13. SollyTeam

    Speaking of which
  14. Jack PapelTeam

    It's been bugging me too lol
  15. AzzyypaarasTeam

    iirc, it makes any void blocks a sky color, because otherwise it looks kinda ugly
  16. Jack PapelTeam

    Hm that sounds like it should be a one liner
  17. SollyTeam

    Yeah, that should be easy
  18. AzzyypaarasTeam

    shoot
  19. SollyTeam

    Does it ignore blocks at the bottom of the world rn?
  20. AzzyypaarasTeam

    Replying toSollyDoes it ignore blocks at the bottom of the world rn?

    I have not looked at the code in a good few months now
  21. SollyTeam

    aa <= world.getBottomY() + 1
  22. SollyTeam

    @Azzyypaaras How's this, instead of the fixed blue background?
    Image shared by Solly
  23. Jack PapelTeam

    Hm I wonder why the background is checkered instead of empty
  24. SollyTeam

    Checkered is just how vanilla handles empty maps
  25. Jack PapelTeam

    Oh
  26. SollyTeam

    Idk
  27. SollyTeam

    Here's the code, anyway
    @Mixin(FilledMapItem.class)
    public abstract class FilledMapItemMixin {
        @Redirect(method = "updateColors",
                at = @At(value = "FIELD",
                        target = "Lnet/minecraft/block/Blocks;BEDROCK:Lnet/minecraft/block/Block;",
                        opcode = Opcodes.GETSTATIC))
        private Block getBottomBlock(World world, Entity entity, MapState state) {
            return world.getRegistryKey().equals(AetherDimension.AETHER_WORLD_KEY)
                    ? Blocks.AIR : Blocks.BEDROCK;
        }
    }
  28. AzzyypaarasTeam

    Oh damn that's nice
  29. SollyTeam

    I can't bothered PRing it, so just replace it yourself sometime
  30. AzzyypaarasTeam

    Wait I just realized
  31. Jack PapelTeam

    Solution: unplaceable dev block with that map color(edited)
  32. SollyTeam

    Replying toAzzyypaarasThe mixin feeds it a unique color

    Yeah, replacing it with a colour is doable
  33. SollyTeam

    Easiest solution then, just add the aether colour and use it for aerogel or something
  34. AzzyypaarasTeam

    hm
  35. SollyTeam

    At least don't waste it only on a background(edited)
  36. AzzyypaarasTeam

    You know I wonder what happens if you go above id 63
  37. SollyTeam

    Not sure, but I don't think it'd be good(edited)
  38. Jack PapelTeam

    What number type can't go above 63?
  39. SollyTeam

    Iirc the map only uses 6 bits to store the colour id
  40. Jack PapelTeam

    Oh
  41. AzzyypaarasTeam

    Maps are fucking wack tbh
  42. SollyTeam

    You could check the length of the map colour array, and if it's full, set the background colour to white, otherwise add a new colour
  43. SollyTeam

    Use a new colour, but fall back to white if all the map colour ids are taken
  44. AzzyypaarasTeam

    Ahah, maps are saved directly to world
  45. Jack PapelTeam

    I would assume it puts a byte array
  46. AzzyypaarasTeam

    Ok so uhhhhh
  47. SollyTeam

    Just
  48. AzzyypaarasTeam

    It would require a bit of mixin, but there aren't any particular hard caps
  49. AzzyypaarasTeam

    Replying toSollyDon't

    Solly solly
  50. SollyTeam

    Well if you want me to do the fallback thing, I can
  51. AzzyypaarasTeam

    Replying toSollyIn a library mod sure

    big Incubus Core hours
  52. SollyTeam

    I feel like it'd be better off in a standalone mod to encourage other mods to use it