mod-dev-talk Tuesday 3 August 2021

123 messages6 people

  1. Jack PapelTeam

    Typo on your latest pull request Solly, it should be "wearables", not "wearbles"
  2. SollyTeam

    @Azzyypaaras Thoughts on this?
    Image shared by Solly
  3. AzzyypaarasTeam

    @Solly that is... wack, yet surprisingly sleek
  4. SollyTeam

    @Haven King
  5. Haven King

    What is block :concern:
  6. SollyTeam

    block is a method that creates an item Settings for the aether blocks category
  7. Haven King

    If they're all the same, why not just have a single static instance?
  8. SollyTeam

    I probably will before I'm done(edited)
  9. Haven King

    AetherBlocks should not be able to be instantiated.
  10. SollyTeam

    The block registry was constantly changing it, so I replaced it with it with a method call there, and it carried over to the items(edited)
  11. Haven King

    Especially as those are static fields, you should just reference them with AetherBlocks.HOLYSTONE_WALL etc.
  12. SollyTeam

    Yeah, the reason for the instantiation was to shorten the lines to improve readability. Yes, it's messy
  13. Haven King

    You can just do a static import then.
  14. SollyTeam

    No, because the block names are the same as the items
  15. Haven King

    Though that's not really best practice either, as then the items and fields have to have different names.
  16. SollyTeam

    Yes
  17. Haven King

    I don't see the issue with doing AetherBlocks.WHATEVER.asItem()
  18. SollyTeam

    Well, not often right now, because it was always asItem, but we will
  19. Haven King

    It's only marginally longer than AetherItems.WHATEVER and reduces codebase complexity significantly.
  20. AzzyypaarasTeam

    Replying toHaven KingI don't see the issue with doing AetherBlocks.WHATEVER.asItem()

    There is a massive issue don't you see, it takes half a second longer to type :tater:
    • 🙃1
  21. SollyTeam

    reduces codebase complexity significantly
    How?
  22. AzzyypaarasTeam

    :huh:
  23. Haven King

    Because then you can have just one method in AetherBlocks that's called for each block that needs an item.
    static <T extends Block> T register(Identifier id, T block) {
      T registered = Registry.register(Registry.BLOCK, id, block);
      Registry.register(Registry.ITEM, id, new BlockItem(registered, ITEM_SETTINGS);
    
      return registered
    }
    (edited)
  24. AzzyypaarasTeam

    Do not question why blueberries are BlockItems
  25. Haven King

    I don't think any of those are major benefits. For the few block items that do look out of place in the midst of other blocks (such as blueberries), those few could simply be registered in the items class.
  26. SollyTeam

    It looks like it does still get B, then immediately yeet it
    Image shared by Solly
  27. SollyTeam

    Replying toHaven KingI don't think any of those are major benefits. For the few block items that do look out…

    Well it's easy for me to do that instead, if azzy wants me to
  28. AzzyypaarasTeam

    Go for what haven is suggesting
  29. Haven King

    Item ordering doesn't really matter (functionally). You can just rearrange the entries 🙃
  30. AzzyypaarasTeam

    Replying toSollyWdym it's fucked?

    Order ain't great and things aren't really well grouped
  31. AzzyypaarasTeam

    Replying toHaven KingItem ordering doesn't really matter (functionally). You can just rearrange the entries 🙃

    I know there was a way but I forgot how, iirc it was a bit annoying
  32. SollyTeam

    I fixed the item ordering
  33. SollyTeam

    So I just wrote a system to register the blockitems in the blocks class, along with a way to sort them before they get registered, solving that as well
  34. SollyTeam

    @Azzyypaaras Any particular reason why traps didn't have blockitems?
  35. AzzyypaarasTeam

    good question
  36. SollyTeam

    I'll just add them then
  37. SollyTeam

    Commit messages go brrr
  38. Jack PapelTeam

    Lmao
  39. SollyTeam

    Why
  40. SollyTeam

    I'm almost done with the current pile of changes, so any testing or code feedback is appreciated
  41. Jack PapelTeam

    I have a rare moment to myself, so I can check things out
  42. Jack PapelTeam

    Can't create an aether portal
  43. cr24Team

    the traps shouldn't have item forms
  44. Jack PapelTeam

    After looking the code a bit more, I'm actually happy with add being the method name. It's quite succinct
  45. Jack PapelTeam

    Why is this a method rather than a variable?(edited)
    Image shared by Jack Papel
  46. KyrptonaughtTeam

    Replying toSolly@Kyrptonaught any idea?

    What error are you getting?
  47. SollyTeam

    Replying toJack PapelWhy is this a method rather than a variable?

    Because it gets modified, and the two would interfere with each other if it were a variable
  48. SollyTeam

    Replying toJack PapelCan't create an aether portal

    Hm? The aether portal item is broken, I know that. You mean you can't create one normally either?(edited)
  49. Jack PapelTeam

    Oh, I only tried via the item
  50. SollyTeam

    The item is broken in the main branch as well last I checked
  51. AzzyypaarasTeam

    Oh, I noticed that
  52. SollyTeam

    It was like that when I first got here(edited)
  53. SollyTeam

    (@Azzyypaaras)
  54. AzzyypaarasTeam

    I
  55. SollyTeam

    You can; they just break when updated
  56. Jack PapelTeam

    Yeah I believe before they removed the nether portal item it was that way
  57. AzzyypaarasTeam

    I would rather we not have that
  58. Jack PapelTeam

    Not every block item needs to be in the creative inventory
  59. AzzyypaarasTeam

    If you need a command to get the portal item then at that point you can just use setblock
  60. SollyTeam

    What about adding the item, but only adding it to a group when in a dev environment?(edited)
  61. Jack PapelTeam

    Yes but in a dev env it can be set to be given to the player by default
  62. AzzyypaarasTeam

    That is a good idea
  63. SollyTeam

    Then I can add it to the food category as well :yeefuckinghaw:
  64. AzzyypaarasTeam

    though the best way to go would perhaps be, you know, fixing the portal item
  65. Jack PapelTeam

    I suppose we're sort of fixing a non-problem