Equations involving the ~get amplifier of potion~ remove decimals

Started by kakreth on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 20:51, 23. Apr 2024
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Equations involving the ~get amplifier of potion~ remove decimals

Trying to make a potion effect that deals damage that is reduced by armour, as block "deal damage of type:" ignores armour i have had to plug in the formulas for damage reduction by armour myself. 

The only problem is, as stated in the title, when using the block to tell the procedure how much damage to put through the equation, it removes all decimal points and essentially churns out Damage x (1-0)


I have circumvented this for now by scaling the equations by 1000 and dividing it back down later, but this is less than optimal and still doesn't allow for fractions of a single point of damage (not a major issue but still).

It took me several hours of testing and playing around with what was causing the issue to figure this out so while it is essentially fixed for me it would be a nice quality of life change to have this looked at in future versions (unless im being a moron and did something wrong but i dont think i am otherwise scaling the equations wouldn't have fixed my issue)