tetra icon indicating copy to clipboard operation
tetra copied to clipboard

[Bug] multiply_ total attributes give to material has some error

Open QLNPLUS opened this issue 5 months ago • 0 comments

Observed behaviour

datapack material json: { "key": "agent_heart_of_the_sea", "hidden": true, "category": "external_agent", "primary": 4, "secondary": 2, "tertiary": 5, "durability": 72, "integrityCost": 0, "integrityGain": 0, "magicCapacity": 0, "toolLevel": 0, "toolEfficiency": 0, "tints": { "glyph": "e8e7e2", "texture": "e8e7e2" }, "textures": [ "heart_of_the_sea" ], "attributes": { "**irons_spellbooks:ice_spell_power": 0.15, <--- this "**irons_spellbooks:mana_regen": 0.05 <--- and this }, "material": { "items": [ "minecraft:heart_of_the_sea" ] }, "requiredTools": { "hammer_dig": "minecraft:gold" } }

in some cases, multiply_ total attributes smaller than 0.03 will be ignored,some value like 0.08 will be recognized as 0.1

Expected behaviour

it will give module 3% ice_spell_power will i write 0.03 in json, correctly

Steps to reproduce

  1. create a datapack
  2. write a material or module json with
    "attributes": { "**some_attributes": 0.03 <--- smaller than 0.05 },
  3. reload
  4. craft moduler item has the same module or use that material

Crashlog

No response

Tetra version

6.9.0

mutil/mGui version

6.2.0

Forge version

1.20.1

Other mods

No response

QLNPLUS avatar Aug 14 '25 02:08 QLNPLUS