Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.16.1] Custom GUI For Custom Block
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
tvm_monster

[1.16.1] Custom GUI For Custom Block

By tvm_monster, August 22, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

tvm_monster    0

tvm_monster

tvm_monster    0

  • Tree Puncher
  • tvm_monster
  • Members
  • 0
  • 13 posts
Posted August 22, 2020 (edited)

I am making a mod where I trying to make some custom gui's for a few blocks that i made, I just need help with one gui for one block then i think i can do the others. Thx in advance for helping me with this.

Edited August 22, 2020 by tvm_monster
  • Quote

Share this post


Link to post
Share on other sites

Beethoven92    69

Beethoven92

Beethoven92    69

  • Dragon Slayer
  • Beethoven92
  • Members
  • 69
  • 556 posts
Posted August 22, 2020

So, you will need the class for your block (obviously), a tile entity (implementing INamedContainerProvider) for your block's logic, a class representing your container (which extends Container) to specify how the GUI interacts, and finally a class extending from ContainerScreen which actually draws your GUI on screen. Lot of things to implement huh? Take a look at Cadiboo example mod..he has some examples for blocks with custom GUIs, and also take a look here: https://greyminecraftcoder.blogspot.com/2020/04/containers-1144.html

  • Quote

Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port

A little fun project: https://www.curseforge.com/minecraft/mc-mods/two-players-one-horse

Share this post


Link to post
Share on other sites

tvm_monster    0

tvm_monster

tvm_monster    0

  • Tree Puncher
  • tvm_monster
  • Members
  • 0
  • 13 posts
Posted August 22, 2020

Thx I will look into that.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • diesieben07
      Do stuff right after login

      By diesieben07 · Posted 39 minutes ago

      PlayerLoggedInEvent
    • dotifo7120
      Do stuff right after login

      By dotifo7120 · Posted 55 minutes ago

      Is there an event called when a player enters into the world (fully logged)?
    • diesieben07
      Windows installer

      By diesieben07 · Posted 1 hour ago

      Just use the installer, it is cross-platform.
    • T_Jam1
      Windows installer

      By T_Jam1 · Posted 1 hour ago

      I need help!! I can't find the forge windows installer and every time I look something up it never helps, I'm mad, I'm confused, and I need help.
    • diesieben07
      Meine Inkompetenz kennt mal wieder keine Grenzen.(Forge 1.16.1)

      By diesieben07 · Posted 2 hours ago

      Threads merged. Please keep this forum in English.   Make sure your anti virus does not block the jar file. Also ensure you only download it from https://files.minecraftforge.net/.
  • Topics

    • dotifo7120
      1
      Do stuff right after login

      By dotifo7120
      Started 55 minutes ago

    • T_Jam1
      1
      Windows installer

      By T_Jam1
      Started 1 hour ago

    • Mounty
      3
      Meine Inkompetenz kennt mal wieder keine Grenzen.(Forge 1.16.1)

      By Mounty
      Started 3 hours ago

    • Amperka_pro
      5
      Как применить нбт к предмету.

      By Amperka_pro
      Started 4 hours ago

    • MistyMarshes
      9
      [1.16.4] Get IChunk World / get current World for the overworld.

      By MistyMarshes
      Started 15 hours ago

  • Who's Online (See full list)

    • dotifo7120
    • st4s1k
    • Orbital_Gaming
    • diesieben07
    • magn919
    • forresttrump
    • AurenX
    • Mr. Crafty
    • CHRISTMASDOG24
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.16.1] Custom GUI For Custom Block
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community