MohistMC / Mohist

Minecraft Forge Hybrid server implementing the Spigot/Bukkit API, formerly known as Thermos/Cauldron/MCPC+
https://mohistmc.com
GNU General Public License v3.0
1.32k stars 221 forks source link

Modded attributes gets deleted from item #3304

Open BellavistaGiulio opened 3 months ago

BellavistaGiulio commented 3 months ago

Minecraft Version : 1.20.1

Mohist Version : 1.20.1-824

Operating System : Linux Server

Logs : No logs are generated

Mod list : View the attach file modlist.txt

Plugin list : No plugin in this moment

Description of issue : Modded attributes get deleted from items after moving them inside any type of slot

https://github.com/user-attachments/assets/70f5193a-0511-45a4-b6d8-905a3900fed6

modlist.txt

Reagin4ik commented 2 months ago

Hello! Have you found a solution to this problem? I came across something similar, but the problem is that the modded attribute is only given to items for a certain time, for example, if the player drags it in the inventory several times, then the modded attribute disappears, leaving behind only the vanilla attribute. However, if the player does not drag it, then the modded attribute is working until the player drags it between the inventory several times

BellavistaGiulio commented 2 months ago

Hello! Have you found a solution to this problem? I came across something similar, but the problem is that the modded attribute is only given to items for a certain time, for example, if the player drags it in the inventory several times, then the modded attribute disappears, leaving behind only the vanilla attribute. However, if the player does not drag it, then the modded attribute is working until the player drags it between the inventory several times

Unfortunately, I haven’t found a solution to this problem yet. It seems like the issue lies in the way the modded attribute is applied and removed. I believe the only way to resolve this would be to modify certain behaviors within the game’s code, such as how the attribute is applied or how it’s affected by item interactions.