I Want To Make A Score That Changes When You Click A Button And The Score Shows Up In A GUI

Started by Cool_Wesley_Dude on

Topic category: Help with MCreator software

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I Want To Make A Score That Changes When You Click A Button And The Score Shows Up In A GUI

PLEASE HELP ITS HARD AND I WATCHED TUTORIALS, THEY DONT HELP!!!

Im trying to put the string in the math block D: it doesnt work.

Anyone know how to help?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How on earth did you even…
Wed, 01/17/2024 - 23:37

How on earth did you even make an infinite loop? Maybe we're just using different generators, but I didn't even know that was possible. The repeat block is supposed to default to one. I highly recommend fixing that before you try running the client again, or it's almost certainly going to crash.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i dont see anything in…
Wed, 01/17/2024 - 23:41

i dont see anything in workshop :O

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
this is the  click reset…
Wed, 01/17/2024 - 23:44

this is the  click reset thingy but the thing does not work when i put the necessary level to 1

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, that looks like the…
Wed, 01/17/2024 - 23:49

Yes, that looks like the correct setup for the command. Seriously though, please try more than one thing before responding again, I'm a little busy at the moment.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so the command works, just…
Wed, 01/17/2024 - 23:51

so the command works, just the only thing is i need the "1 click per 10 sec" and for it not to go into the negatives now

 

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you want to set up a loop…
Wed, 01/17/2024 - 23:57

If you want to set up a loop that increases 'Clicks' every ten seconds, you are going to need a second number variable. This is going to be a little more complicated:

Make another player-persistent number variable. (I'm going to call it 'timer'.) 

Make a new procedure with the global trigger 'on player tick update.' In that procedure, use an if-else bracket to check if the timer equals 200. (A tick is 1/20 of a second, so 20 ticks is one second, and 200 ticks is ten seconds.) If it equals 200, increase 'clicks' by +1, and set 'timer' to 0. If it does not equal 200, instead increase 'timer' by +1.

This procedure will run twenty times every second, increasing the timer by 20 every second. Once the timer equals 200, it will increase 'clicks' by one, and reset the timer, so that in ten more seconds, it adds another +1 to clicks.

Please try this first before asking for pictures. I believe in you!

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry, but where is the "on…
Thu, 01/18/2024 - 21:45

sorry, but where is the "on player tick" block?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A procedure can either be…
Thu, 01/18/2024 - 22:09

A procedure can either be linked to another mod element, (such as telling an item to run a procedure when you swing it), or you can give a procedure a 'global trigger' that will make it automatically trigger whenever a certain event occurs. (Like the player jumping, an entity taking damage, a block being placed, etc.)

Whenever you create a procedure, you should be able to change the global trigger by clicking the green shaped block at the top of the workspace.

If you need help with basic procedure stuff, I highly recommend some of NorthWestTrees' tutorials. It doesn't have to be specifically what you're trying to do, just watching someone else do things using MCreator might be helpful.