-
Recently Browsing
No registered users viewing this page.
-
Posts
-
By ThisIsNotOriginal · Posted
so do i change the name in my ItemsList? -
By diesieben07 · Posted
I do not understand. How is the offhand slot relevant regarding the background color of your slot? Assuming you want a keyboard key to open the GUI: Make a KeyBinding. Use ClientTickEvent to check if its pressed. If it is, send a packet to the server, which then calls NetworkHooks#openGui. You can preemptively also open it on the client to hide the latency of the two network roundtrips. -
By diesieben07 · Posted
That is not how you make a Git repo. At all. This creates a BlockItem for all of your blocks. One of your blocks has the registry name "copper_ore", hence this will create a BlockItem with registry name "copper_ore". This then creates another Item with registry name "copper_ore". This is not allowed, registry names must be unique. -
I've already tried that and it's not how it's supposed to work. For example, if I put an item in the offand slot, the background texture is set to default. that's how it should work I'll try the event Another question which event should I use to open my BackpackContainer. I know that there is the KeyInputEvent when I use this I don't get a ServerPlayerEntity which I need to open the GUI with NetworkHooks#openGui. I currently use TickEvent#PlayerTickEvent which is not the best solution. Is there another / better way to do this?
-
-
Topics
-
Who's Online (See full list)