Closed ZaneMCXVII closed 1 year ago
:) add me on discord davidawesome01#3886 did this a lot, made a hacked proxy with it lol
Solved it!
All I had to do was add a LookupRegistry to self.buff_type
and add minecraft:
to the beginning of the ID so it would be encoded correctly.
After that it worked perfectly. (Well, not really... the emerald was a piece of andesite. Probably just because I'm using a 1.16.5 registry with a 1.18.2 proxy.)
I'm trying to write a proxy that opens a window with some items when a player types a command in chat, but am having issues setting the slots in the window.
This is the code for opening the window and adding the one item:
If you read the title you probably know the error this is giving me:
builtins.TypeError: '<=' not supported between instances of 'int' and 'str'
I tried replacing the string id of"emerald"
in the pack_slot function with a numerical ID, and all that gave me wasInternal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException: readerIndex(8) + length(1) exceeds writerIndex(8): PooledUnsafeDirectByteBuf(ridx: 8, widx: 8, cap: 8)
. I'm not sure if I'm doing something wrong or if this is an issue with quarry.Any help is appreciated.