Posted November 5, 20205 yr My TileEntity acts like a transmutation circle, and every tick it changes another block near it to a different type. I need a way for my TileEntity to "remember" which blocks it should be swapping to and from. How can I write and read a BlockState to NBT?
November 5, 20205 yr You'll probably need to use the associated codec with encodeStart and pass in the NBTDynamicOps instance. From there, grab the result and verify there is no error present and then write the tag.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.