Checking Your Block Break Count - Difficulty 🟨 or 4/10

G’day! This guide will teach you how to add a system to your game to track how many blocks you have broken will inventory item managers and properties!

Now don’t go yelling at me in the comments yes there are other ways to do this but this is the way I found.

Limits
  1. Whenever you break a block but you don’t have enough inventory space, the counter will not go up.
  2. If a block is granted into your inventory the counter will go up
Resources

image
1 Inventory Item Manager Copied seven times
1 Property Copied seven times
1 Game Overlay

Total Memory: 6475


  1. Grab your inventory item manager and set it to dynamic dirt
Image

image


  1. Open the blocks section of the manager and add this code:
    image
    This says whenever a dirt is mined[1] it will add +1 to the dirt counter

  1. Add your property
Image

image


  1. In the property settings, make the name dirt and change it to a number property. Make sure the property is set to player scope.
Image


  1. Repeat steps 1-4 7 more times for each block (the highlighted things are the things you need to change)
Example of sand

5a. Grab your inventory item manager and set it to dynamic sand

Image

imageimage


5b. Open the blocks section of the manager and add this code:
image
This says whenever a sand is mined[2] it will add +1 to the sand counter


5c. Add your second property

Image

image


5d. In the property settings, make the name sand and change it to a number property. Make sure the property is set to player scope.

Image


  1. Place your game overlay
Image

image


  1. Add these settings
    image
    image
    image

  1. Create a new block for the game overlay on the channel update overlay
Image

image


  1. Add this code[3]
    imageimage
    image
    imageimage

And you should be done!

Difficulty Poll!
  • 0/10 or :white_large_square:
  • 1/10 or :blue_square:
  • 2/10 or :green_square:
  • 3/10 or :green_square:
  • 4/10 or :yellow_square:
  • 5/10 or :yellow_square:
  • 6/10 or :orange_square:
  • 7/10 or :orange_square:
  • 8/10 or :red_square:
  • 9/10 or :red_square:
  • 10/10 or :purple_square:
  • 11/10 or :black_large_square:/:skull:
0 voters

  1. or granted ↩︎

  2. or granted ↩︎

  3. I know I could have just done one property for all of them lol ↩︎

14 Likes

Great guide!

3 Likes

w jobozo.

2 Likes

Amazing Guide!
I love that there are so many images and it’s super organized!
(how did you make the images aligned so well?)

@dynachamp W pfp

4 Likes

This is a nice guide, i can probably use it. Not very common though.

Nice guide! I can give this an 8/10.

are you aware of this?

2 Likes

Yeah I am thanks for letting me know.

I liked the post for the good guide none the less and now I can’t take it away.

1 Like

Wow, Cool Guide!
99.9/10

4 Likes

Cool guide with a lot of pictures!

2 Likes

This says that whenever the amount of dirt in the player’s inventory changes, it adds one dirt miner. Plus, you could just use a counter and a property that broadcasts on that channel. I’m not sure this guide works if you drop your minerals and pick them back up repeatedly.

3 Likes

Nice guide, but easier solutions following getrithekd’s post:
Case 1: players can’t sell/use minerals
The inventory manager updates a property that is the score.
Case 2: players can sell/use minerals
At the sell station, whenever a player sells/uses a certain amount of dirt, that certain amount is added to the property that is the player’s score.
Case 3: a small fix, perhaps?
Using this guide, add to the blocks in the inventory manager to also send on channel “remove blocks”.
An item granter grants -1 minerals when receiving on this channel.
This will prevent the player from dropping and picking up blocks to cheat.
(But will prevent them from building, which you can fix by providing a type of block that does not count towards the score.)

maybe add this to the guide?

4 Likes

@chunky I don’t understand what you mean in case 3. I really like the idea though. Could you maybe provide more context or a picture?

1 Like

basic explaination:
Use this guide but add a feature that removes all the player’s blocks, so they will never have blocks they can drop from their inventory.
The block code and devices for that is a bit complicated for new users, so I get why it’s a bit difficult to understand.

1 Like

BUM P

1 Like

BU M P

2 Likes

This post was flagged by the community and is temporarily hidden.

This will surely be useful in the game I’m currently making!
7975 years wow

1 Like

Amount of Bumps: 3
yes there is one flagged by Patrick and Anxiety

1 Like

Bump because this is a good guide made by a good person

1 Like

Amount of Bumps: 5

1 Like