Create Currency (Cash) Global Var

Started by ninjawizard1234 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create Currency (Cash) Global Var

I create a Global Var (techcredits) to make a currency, but idk how to make it work, i made 2 procedures to test here (checking cash amount and spending cash):

 

 

but when i check the cash after selling its still 0, or its not returning the value right or its not even changing it

 

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it returns 0.0 to me after i…
Mon, 12/04/2023 - 04:03

it returns 0.0 to me after i sell the gold ingots :( i really dont know what i did wron.. btw i set the Global Var to Player Persistent.

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i made it work but its being…
Mon, 12/04/2023 - 06:54

i made it work but its being hard, there is literally no help on google - the Global Vars of MCreator:

  • When i use GLOBAL_MAP it stores my Value when i change Dimensions, but disapear when i Quit/Enter the World Again
  • When i use PLAYER_PERSISTENT it stores when i leave the game but it disapears when i change dimensions.

 

anybody could help me? :(

thanks

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
PLAYER_PERSISTENT also…
Mon, 12/04/2023 - 06:55

PLAYER_PERSISTENT also disapear when the player Dies, witch i find strange since its not PLAYER_LIFETIME :/ is this buged?

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
does the superflat world…
Mon, 12/04/2023 - 07:00

does the superflat world have anything to do with the other dimensions generation?

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
PLAYER_LIFETIME also dont…
Mon, 12/04/2023 - 07:03

PLAYER_LIFETIME also dont save the Var when you quit/enter the world again :/ how do i make the Global Var do Not reset when i leave the game?

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
lol i cant even display the…
Mon, 12/04/2023 - 10:50

lol i cant even display the value of the Global Var on a Message to the player.. guys in desperate here is there a tutorial for this? for settting permament GLobal vars?

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i got this one solved, the…
Wed, 01/17/2024 - 23:42

i got this one solved, the topic can be closed, if anybody needs information about this contact me on discord:

_ninjawizard