Jump to content

plugsmustard

Members
  • Posts

    89
  • Joined

  • Last visited

Posts posted by plugsmustard

  1. On 2/17/2021 at 4:24 PM, diesieben07 said:

    Look at the constructors that are available. Then pick the one that fits your need.

    I'm not asking you to write the code or anything for me, but could you be a little more specific.
    is there a list of available constructors i can look at pertaining to this?

  2. Just now, diesieben07 said:

    Make a new button.

    ...i have old code from 1.14.4 that does not work. 

     this.addButton(new Button(relX + 18, relY + 15, 5, 20, "PURGE", button -> PacketHandler.sendToServer(new C2SRequestStartOven(tileEntity.getPos()))));
          this.addButton(new Button(relX + 18, relY + 15, 5, 20, "PURGE", button -> PacketHandler.sendToServer(new C2SRequestStartOven(tileEntity.getPos()))));
     

    gets "The constructor Button(int, int, int, int, String, Button.IPressable) is undefined"

  3. 6 minutes ago, diesieben07 said:

    Yes... But then you also said you didn't use it this time. Which will make things terrible for you, because you now need to merge things when you commit next time.

     

    You completely recreated the repository... Why...

     

    I do not understand what you mean by this. I did not notice any kind of "spawning" when opening the GUI.

    if it wasn't spawing an extra "column" then it must be my laptop being garbage. 

     

    and i thank you. i knew it had to be something registered that was missing

     

    are you able to help me with a button or should i make a new topic?

     

  4. 16 minutes ago, diesieben07 said:

    Your ColumnBlock class is entirely unused, you never register a block with that class. Your BlockInit class does register something called column, but it does not use ColumnBlock.

     

    In ColumnBlock for example.

    thank you, that got the gui to come up, 
    https://github.com/drmdgg/MarijuanaCraft1.16.5/blob/07db89d8b03f89c86d01893936d40a3ac2e412ee/src/main/java/drmdgg/marijuanacraft/init/BlockInit.java#L36

    however, it still spawns another "column" when the gui it opened

  5. 20 hours ago, diesieben07 said:
    • Use @Override when overriding methods.
    • Your repository is missing the build.gradle and gradle wrapper. The MDK comes with a properly configured .gitignore file, use it. However that means you need to use a proper git client instead of the web upload, which you should be doing anyways.
    • I can't see the issue from just the code, it looks fine from just looking at it. Please correct the point above so we can use the debugger on it.

    Hope this helps. 
    drmdgg/MarijuanaCraft1.16.5 (github.com)

    which overrides are you referring to?

  6. 2 minutes ago, DragonITA said:

    I have the same problem right now, but I use the traditional method and not the DeferredRegister, because I noticed that the DeferredRegister is not yet stable enough with the registration of the entities.

    is your github up to date so i can look? 

    • Like 1
  7. 3 hours ago, diesieben07 said:

    DeferredRegister and vanilla spawn eggs are a bit problematic currently, because items are registered before entities.

    so how should i be doing it?

     

    and should i bother using the "Entities" class, which has all the world spawn and spawn eggs(that dont work)

  8. 17 hours ago, diesieben07 said:

    You create EntityType instances for all your entities in drmdgg.marijuanacraft.init.Entities. You do so in a static initializer, which is not correct, registry entries must be created in their appropriate registry event. Apart from that, you never register these EntityType instances, so they are not valid. Regardless you use them to create your spawn egg items, which means they point to invalid entities.

     

    You then register your entities using DeferredRegister in drmdgg.marijuanacraft.util.Registries. You never use these to create spawn eggs.

    so I should be deleting that entire class? and just work with deferredRegister?

     

    how do I do this with spawn eggs?

  9. never mind!

        private Optional<PurgingRecipe> getRecipe(final ItemStack input) {

            return getRecipe(new Inventory(input));

        }

     

        private Optional<PurgingRecipe> getRecipe(final Inventory inventory) {

            return world.getRecipeManager().getRecipe(PurgingRecipe.purging, inventory, world);

        }
     

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.