Custom Variable Number

Started by Ro... on Tue, 11/10/2020 - 23:12

Topic category: Help with modding (Java Edition)

Last seen on 06:10, 11. Aug 2022
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Custom Variable Number
Tue, 11/10/2020 - 23:12

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

Use :number formatter. Check…
Wed, 11/11/2020 - 09:20

Use :number formatter. Check dropdown with examples in the label editor.

Last seen on 00:04, 1. Apr 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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