Custom Variable Number

Started by Ro... on

Topic category: Help with modding (Java Edition)

Last seen on 04:12, 18. Apr 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom Variable Number

Hi. im making an adventure mod, with magic stuff, boss, mob, but i want my mod to have level, like u have an xp, and every time u do something, u gain exp, and at a certain amount of exp u can lvl up. i know how to do all that since its now possible with the PLAYER_PERSISTANT Variable. i just want to know is there a way to hide the decimal number on number variable. like The main number is 1, cuz... ye u start at level 1. but if i do an overlay or a text label that show the level variable. it will show a decimal number: 1.0. and i want to know if there is a way to remove the decimal number. Level 5 look better than Level 5.0

Last seen on 01:58, 4. Feb 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Once you use :number…
Thu, 03/10/2022 - 01:18

Once you use :number formatter, how do you get back the single decimal place? my variable now looks like 0.00000000000, when i would like it to look like 0.0