Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

GThoro

Members
  • Content Count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About GThoro

  • Rank
    Tree Puncher
  1. One more thing if I may ask. If I need to perfrom some action on that server side capabilities depending on user interaction in GUI, I need to send packet with message from client to server?
  2. I see, I thought there is some magic way to call player.getCapability() on client side and get the same results as on server side. Thanks, I know what to do now.
  3. Hello, I've attached some capabilities to players on server side, but I need that data to display in GUI. I know I'm supposed to sync it to client but it's a bit vague. Can someone give me few pointers or examples? I'm able to put all needed data in extraDataWriter while using NetworkHooks.openGui but I need to write another serializer/deserializer for capability data. Does syncing capability data allows me to skip that? Also in the same GUI I need some config values that are set server-side, how can I access that? Is there a way to sync configs, or I need to use extraDataWriter fo
  4. Even if it's like simple string or int value? For example I have an item that user can right click and his player UUID should be "stored in" the item, this should use capabilities too? What's NBT for then?
  5. I've started working on a mod and it's been a bit of a bumpy ride. Mostly due to lack of recent and decent information, examples or simple know-how about internal workings. Finding outdated tutorials doesn't help either, and from what I've already read and seen in code (looking at 1.16 mods at github was mostly helpful) I got a bit confused. So please help me understand few things. Here's my questions: I want to attach some simple data to some ItemStack and TileEntity, is using getOrCreateTag() for ItemStack and getTileData() for TileEntity the way to go? or should I use ca
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.