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

RInventor7

Members
  • Posts

    29
  • Joined

  • Last visited

Converted

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

RInventor7's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I have made a custom entity that a player can ride. By default the player is sitting (It's legs are rotated 90 deg up). I want the player to stand on the entity. Is it somehow possible to override the legs rotation or force the player to stand? Thanks.
  2. I'm using RenderGameOverlayEvent to display text on a screen. I'm reading the text in from a file using a BufferedReader. The text file is in UTF-8 encoding, I specify for the reader to be in UTF-8 but when the text is displayed some characters (öÖäÄõÕüÜ) are displayed as displayed as question marks (????????). If I set the readers charset to StandardCharsets.ISO_8859_1, then everything is displayed correctly. However, when I then export my mod and run it in real Minecraft those letters are replaced with two other weird characters making the string double its actual size. EDIT: In the real game one character is displayed as two different other characters, then if printed out to Minecraft's debug.txt, in there those two characters are also different to those displayed in the game. How can I make those characters (öÖäÄõÕüÜ) to be displayed correctly not only in the development environment but in the real Minecraft as well?
  3. Great, but I was hoping to do it on 1.16.5 or 1.18.
  4. My mod needs another mod in order to work. At the moment if someone downloads my mod, they have to download this another mod as well. Is it possible to add this another mod to my own mod, so that there would be no need to download this other mod? Thanks.
  5. It works. Thank you very much! I didn't think of that simple solution
  6. Hi! I add a value (e.g. 10) to player's custom persistent data variable and print it out. It's the same on server and client until I exit the world. If I reopen the game (or load the world) the value is still there on server, but on client it's 0. My TileEntity screen gets the value from the player and displays it. But it gets the value only on client which is not the correct value. How to sync this value/variable after I reopen the game/world? I have tried to add a DataParameter to PlayerEntity and use the entityDataManager in the PlayerTickEvent function, but it crashed the game. It's probably not the right way to do it. Any ideas? Thanks.
  7. There happened to be a few simple logic mistakes. I now get the correct sound out and a correct value is printed out on server Edit: Client it is still 0 for some reason. Because the functions checking the item count in a slot ware running only on server.
  8. ATMButtonMessage https://pastebin.com/iPtCZ4jM I play the sound in ATMEvents lines 34 and 38 The printed output in ATMEvents line 26 shouldn't still be 0 when there are 64 items in the slot??
  9. Menu https://pastebin.com/aZ0u23rw Screen https://pastebin.com/wPEg6wRE Events https://pastebin.com/BbAeBGNw Block https://pastebin.com/SCA22h6i TileEntity https://pastebin.com/nBsb7AKS Screen functions https://pastebin.com/V92Qn8zr
  10. Hi! I have created a custom TileEntity. The container has 1 slot and 1 button. I enter any item to that slot. If I press the button, it should play a sound and print out how many items are in the slot (if the slot is not empty). Doesn't matter which items/blocks I put into the slot or how many of them I put into the slot, after pressing the button the sound is NOT played and the count printed out is always 0. Why is that so? And how to fix this? Thanks.
  11. Hi! I have created a block that runs a check every second. In that check it should find certain particles (e.g. cloud particles) for example in 6 block radius around the block and if they exist then play a sound. I know how to check if certain entity exists in specified range, but how to check if a certain particle exists? Are particles also entities? Thanks.
  12. Hi! My custom entity has a number variable stored in its NBT data. When I print out the values I see that it is showing me on server thread correct output (10 for example) but on the client/render thread it is always showing 0. If the value gets set on render thread I send the serverbound packet to server and set the value on server as well. Sadly, all the logic (variable value setting included) happens mostly on server thread. Or the value is 0 on the client thread and the correct server value is overwritten with the wrong client value. Is there an easy way to sync client and server values? And if not, then how to send clientbound packets? And would it even work?
  13. In 1.16.5 I used AbstractGui.blit function to draw textures on the screen during the RenderGameOverlayEvent. In 1.17.1 the class is missing. It's probably just renamed. Does anyone know the new name of that class? Thanks.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.