[Bug]: No tooltip in multiplayer #7

Closed
opened 2025-04-05 17:33:13 +00:00 by Disketaa · 8 comments
Disketaa commented 2025-04-05 17:33:13 +00:00 (Migrated from github.com)

Version information

1.0.0-alpha.6

Expected Behavior

Showing attribute modifier tooltip

Actual Behavior

Host can see tooltip with "-1% of speed when equipped", and attribute actually works on other players, but other players can't see the tooltip about it

Image

Reproduction Steps

{
  "add": {
    "minecraft:attribute_modifiers": {
      "modifiers": [
        {
          "type": "minecraft:generic.armor",
          "id": "minecraft:armor.chestplate",
          "amount": 5,
          "operation": "add_value",
          "slot": "chest"
        },
        {
          "type": "minecraft:generic.movement_speed",
          "id": "minecraft:armor.chestplate",
          "amount": -0.01,
          "operation": "add_multiplied_base",
          "slot": "chest"
        }
      ]
    }
  }
}

Host can see the tooltip
Other players sometimes can see, sometimes cannot

Java version

21.0.4

Additional information

No response

### Version information 1.0.0-alpha.6 ### Expected Behavior Showing attribute modifier tooltip ### Actual Behavior Host can see tooltip with "-1% of speed when equipped", and attribute actually works on other players, but other players can't see the tooltip about it ![Image](https://github.com/user-attachments/assets/d70cda2a-a4e7-4572-9be8-df138197e8f5) ### Reproduction Steps ``` { "add": { "minecraft:attribute_modifiers": { "modifiers": [ { "type": "minecraft:generic.armor", "id": "minecraft:armor.chestplate", "amount": 5, "operation": "add_value", "slot": "chest" }, { "type": "minecraft:generic.movement_speed", "id": "minecraft:armor.chestplate", "amount": -0.01, "operation": "add_multiplied_base", "slot": "chest" } ] } } } ``` Host can see the tooltip Other players sometimes can see, sometimes cannot ### Java version 21.0.4 ### Additional information _No response_
Awakened-Redstone commented 2025-04-05 23:05:39 +00:00 (Migrated from github.com)

I'm quite busy and tired with some important projects and Blanketcon '25 but I will give it a look when I have some free time

Are you able to get the output of /client-default-components minecraft:iron_chestplate from one of the clients that isn't showing the tooltip?

I'm quite busy and tired with some important projects and Blanketcon '25 but I will give it a look when I have some free time Are you able to get the output of `/client-default-components minecraft:iron_chestplate` from one of the clients that isn't showing the tooltip?
Disketaa commented 2025-04-06 07:38:58 +00:00 (Migrated from github.com)

Image

![Image](https://github.com/user-attachments/assets/0cac5ec8-9147-4038-babe-eafa7cd26e4c)
Disketaa commented 2025-04-06 07:41:07 +00:00 (Migrated from github.com)

If chestplate slows you down a bit but not showing it in tooltip
Some tools I changed durability still uses previous one

Image

If chestplate slows you down a bit but not showing it in tooltip Some tools I changed durability still uses previous one ![Image](https://github.com/user-attachments/assets/90b5ba20-d2e0-45c2-89fb-5f6dac5b41a9)
Disketaa commented 2025-04-06 07:45:02 +00:00 (Migrated from github.com)

and the host can see durability: "150" as expected

and the host can see durability: "150" as expected
Awakened-Redstone commented 2025-04-06 17:36:34 +00:00 (Migrated from github.com)

interesting
Does all players have the mod on the client?
What is the hosting method? Is it LAN or a Dedicated server?

interesting Does all players have the mod on the client? What is the hosting method? Is it LAN or a Dedicated server?
Disketaa commented 2025-04-07 10:11:57 +00:00 (Migrated from github.com)

Yes, all players have the mod
We're playing via Radmin VPN LAN Connection

Yes, all players have the mod We're playing via Radmin VPN LAN Connection
Awakened-Redstone commented 2025-04-10 22:29:49 +00:00 (Migrated from github.com)

This may be caused by the code that rejects the packet on local connection.
I'll implement a better system once I have the time to work on it.

It was intended to only have the LAN host reject the packet to avoid issues, but it may be causing some unexpected behavior.

This may be caused by the code that rejects the packet on local connection. I'll implement a better system once I have the time to work on it. It was intended to only have the LAN host reject the packet to avoid issues, but it may be causing some unexpected behavior.
Awakened-Redstone commented 2025-05-06 16:59:04 +00:00 (Migrated from github.com)

This should be fixed on Alpha 7
Let me know if the issue persits

This should be fixed on [Alpha 7](https://modrinth.com/mod/default-components/version/1.0.0-alpha.7+1.21) Let me know if the issue persits
Commenting is not possible because the repository is archived.
No description provided.