Minecraft Fabric Modding Tutorial! (GUIs)

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 82

  • @waynee95
    @waynee95 4 роки тому +13

    Nice tutorial! It's good to see more of these "advanced" tutorials, especially working with common libraries in the fabric ecosystem.

  • @arcadianfl4m3nl98
    @arcadianfl4m3nl98 Рік тому +9

    Heya, for those working in 1.19 or so,
    use setScreen() instead of openScreen() when adding it to the item. openScreen was renamed or something

    • @ButterKing-28
      @ButterKing-28 Рік тому +1

      thank youuu!!!
      setScreenAndRender() seems to work

    • @ButterKing-28
      @ButterKing-28 Рік тому +2

      It kinda worked but then crashed? how to fix?

    • @A_Aphid
      @A_Aphid 5 місяців тому +1

      @@ButterKing-28 yea.. I got they same problem.. Do you remember if you fixed it or not? (I presume not since its been a year..)

    • @ButterKing-28
      @ButterKing-28 5 місяців тому

      @@A_Aphid I believe I did but tbh its been forever I kinda don't remember

    • @A_Aphid
      @A_Aphid 5 місяців тому

      @@ButterKing-28 Oh don't worry abt it. I asked the discord server and they helped me get LibGUI working.

  • @nedisawegoyogya
    @nedisawegoyogya 3 роки тому +2

    please keep it up, it's very informative! as of right now, I can't find any advance modding tutorial with fabric

  • @gwengwen4933
    @gwengwen4933 4 роки тому +4

    thanks men, i'm french and i want to create my own mod and your tutorial help me, Thanks

  • @wheezeau
    @wheezeau 4 роки тому +6

    Thanks! so much please keep up the videos!

  • @likethemanman8325
    @likethemanman8325 3 роки тому +5

    Why does your voice remind me of john wick randomly

  • @maestro_denery
    @maestro_denery 3 роки тому +6

    amazing.

    • @ErnieBernie10
      @ErnieBernie10  3 роки тому +5

      Dammit these nice comments are making it hard to resist coming back to yt.. :D

    • @ButterKing-28
      @ButterKing-28 Рік тому +1

      @@ErnieBernie10 You left yt??

  • @wheezeau
    @wheezeau 4 роки тому +7

    Can continue with the GUI tutorials?

    • @ErnieBernie10
      @ErnieBernie10  4 роки тому +3

      I will. I'll make the container gui tutorial soon

    • @ErnieBernie10
      @ErnieBernie10  4 роки тому +2

      New GUI tutorial is up you can check it out here: ua-cam.com/video/Ca769FY4pOg/v-deo.html

  • @GraceMotley
    @GraceMotley Рік тому +2

    Is there any way you could assign the GUI to an entity? For example, right-clicking a villager to receive a quest from them?

    • @zerokun2655
      @zerokun2655 Рік тому +1

      That's what I want to do, like a custom buy system but with a different UI. I think you can look at the villagers code and see what function launches it's UI and just override the code from the entity

  • @СтивИваныч
    @СтивИваныч 4 роки тому +3

    Thanks! Its really helpful. Are you develop some mods right now?

    • @ErnieBernie10
      @ErnieBernie10  4 роки тому +1

      Not really. I was working on Bestiary, but I kind of put that on hold and started helping with LibGui itself.

  • @aussiepickle653
    @aussiepickle653 3 роки тому +1

    How about HUD system? e.g. creating a thirst system.

  • @jerseyjacket100
    @jerseyjacket100 4 роки тому +4

    Pretty epic. Ty

  • @Holo74
    @Holo74 4 роки тому +2

    I'm trying to make a mod that allows you to apply poisons to blades. I'm trying to display the amount of hits you have left without opening any screens. Where should I look to try and display that info constantly without opening a new GUI window? Thank you for the help and your tutorials

    • @ErnieBernie10
      @ErnieBernie10  4 роки тому +3

      You probably can't use LibGui for this. What I would do is look into the source code and find out how Minecraft displays for example the hotbar. You could also try to find a mod that already exists and displays something on screen. I'm thinking of a map mod or something like that. :)

    • @Holo74
      @Holo74 4 роки тому +4

      @@ErnieBernie10 thank you for the help. I found that there aren't a lot of tutorials for fabric just yet. I hope your channel does well and you continue to make amazing tutorials.

  • @ButterKing-28
    @ButterKing-28 Рік тому +1

    does this work in 1.19.4 also, are there any plugins that can show the UI in the IDE?
    [this does work (kinda) in 1.19.4, just need to adjust some things]

  • @wireless533
    @wireless533 3 роки тому

    @ErnieBernie hey can you make a tutorial or explain how to do this without an item like a potion hud or item durability hud

  • @brickwall2900
    @brickwall2900 2 роки тому

    i have a problem, i'm on a lower end computer and it lags when my client sided screen is showing
    edit: that can be fixed by changing the background painter to draw a simple rectangle

  • @aurorahubps
    @aurorahubps 3 роки тому

    i want to see a clickgui can you make that?

  • @Bvngee
    @Bvngee 4 роки тому +3

    Hey! just watched this tutorial. I am having a problem though: I correctly added the dependency and repository, but for some reason it is not recognized at all. Do I have to add something to the fabric.mod.json file? Any help? Thanks
    (FYI I DMed you this)

    • @ErnieBernie10
      @ErnieBernie10  4 роки тому +2

      No the only problem I can imagine is that you added the dependency into the wrong Gradle file

    • @Bvngee
      @Bvngee 4 роки тому

      Nvm, fixed

    • @Bvngee
      @Bvngee 4 роки тому

      @@ErnieBernie10 One more question: How do I access the player's coordinates(x, y, and z seperately)? One person said MinecraftClient.getInstance().player.getPos(), but that returns the vec3d format which i don't know how to deal with. Another said vector.getX(), but that didn't work either. Any help? Thanks

    • @Bvngee
      @Bvngee 4 роки тому +3

      nevermind; MinecraftClient.getInstance().player.getX() hahahha I'm so dumb lol

    • @Lacksal
      @Lacksal 2 роки тому +1

      @@Bvngee im having the same issue. how did you fix it?

  • @codyplayer4329
    @codyplayer4329 3 роки тому

    really helpful, i love'it

  • @Nitr0h
    @Nitr0h 2 роки тому

    I love how I'm following what this man is typing (not the erniebernie) yet I'm still getting errors that don't even make sense to me.

    • @ErnieBernie10
      @ErnieBernie10  2 роки тому +1

      These videos are probably outdated and are no longer relevant.

  • @Aashvark
    @Aashvark 3 роки тому

    i can't install cotton it won't launch mc after-

  • @jacksonlambert1702
    @jacksonlambert1702 4 роки тому +1

    I need some help. Is there a way to make a button that when clicked opens a new GUI?

    • @jacksonlambert1702
      @jacksonlambert1702 4 роки тому +1

      Never mind I figured it out.

    • @jacksonlambert1702
      @jacksonlambert1702 4 роки тому

      Ok now I need help with a different problem. I have a GUI, but I need to make it so that when I click a button, it removes an item from my inventory and gives me a different one? Is this possible?

  • @BeardBarians
    @BeardBarians Рік тому

    When I open the GUI the second time, it gives me this error: net.minecraft.client.MinecraftClient.getNarratorManager()" because "this.client" is null

  • @Snivine
    @Snivine 3 роки тому

    Can you make it without using an item?

  • @imxiaoanag
    @imxiaoanag 4 роки тому +1

    Why can’t I download LibGui in the step of genSources

    • @ErnieBernie10
      @ErnieBernie10  4 роки тому

      You need to add the dependency and then click the Gradle import button

    • @imxiaoanag
      @imxiaoanag 4 роки тому

      ErnieBernie Not this problem, I even cannot download the lib for the API.

    • @ErnieBernie10
      @ErnieBernie10  4 роки тому

      @@imxiaoanag It could be a lot of things I suggest you go over to the CottonMC discord and talk to me there. discord.gg/wKQSzf

    • @A_Aphid
      @A_Aphid 5 місяців тому

      @@ErnieBernie10 Ohh my god. I completely forgot to press the reload button. Thank you so much!!!

  • @keldera
    @keldera 4 роки тому

    What intellij theme are you using?

  • @shoaib2307
    @shoaib2307 3 роки тому

    How to display a text on screen when a key is pressed??
    Please help

    • @ErnieBernie10
      @ErnieBernie10  3 роки тому +2

      fabricmc.net/wiki/tutorial:keybinds

    • @shoaib2307
      @shoaib2307 3 роки тому +1

      @@ErnieBernie10 I did keybind part,it's working but I don't know how to display a text on screen
      And I can't understand how to get matrixstack
      BTW thanks for help

    • @ErnieBernie10
      @ErnieBernie10  3 роки тому

      It comes down to the same thing as in this video. Instead of executing the code to open the gui in the right click handler, just put that code where the onKeyIsPressed handler is. Can I also refer to the discord where we can help you more easily. There is a LibGui channel here: discord.gg/gr2hU5XZ

    • @shoaib2307
      @shoaib2307 3 роки тому +1

      @@ErnieBernie10 thanks but I figured it out
      I used the hud event instead of tick event

    • @ErnieBernie10
      @ErnieBernie10  3 роки тому

      Awesome

  • @commander6432
    @commander6432 2 дні тому

    first line of code and i already have 3 errors :)

  • @Wolfyxon
    @Wolfyxon 3 роки тому

    but how to get that item?

    • @ButterKing-28
      @ButterKing-28 Рік тому +1

      do /give (in-game) or it would be in the creative menu

  • @lawlietgaming9621
    @lawlietgaming9621 3 роки тому

    can u make a discord so people can ask questions

    • @ErnieBernie10
      @ErnieBernie10  3 роки тому

      There is already a discord channel. Take a look in the other comments I link a discord server there.

    • @lawlietgaming9621
      @lawlietgaming9621 3 роки тому

      @@ErnieBernie10 cant find it u should put that in video description

    • @ErnieBernie10
      @ErnieBernie10  3 роки тому

      discord.gg/ctBTfWZPZs
      There will be a LibGui channel that you can ask questions in

  • @robinbartschi3527
    @robinbartschi3527 3 роки тому

    It no work in 1.17.1

    • @ErnieBernie10
      @ErnieBernie10  3 роки тому

      That would be because this tutorial is for 1.15. I won't make any updated tutorials. Hopefully someone else can step in.

  • @MeAmALime
    @MeAmALime 3 роки тому +2

    I am watching this to make hacks