Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I'm the author of a datapack that uses vanilla scoreboard objectives to track the placement of chests and barrels, such as:

scoreboard objectives add placed_chest minecraft.used:minecraft.chest "Player placed chest"

This objective updates for default chests/barrels, but if the item has any NBT set the objective doesn't update.

This is different from vanilla and completely breaks my datapack when on Forge (tested in 1.14.3 and 1.14.4)

 

I so hope this is a bug that will be fixed and not an intentional patch!

 

 

 

 
  • Author

Have I posted this in the right place?

Could someone give me some feedback?

provide your data pack or one that illustrates the issue and the steps to reproduce.

As it sits, pretty sure we don't mess with anything scoreboard related except to fire a few events around it.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • Author

I did some more testing and it's not NBT that's the issue, it's stack size!

The scoreboard objective is only incremented if the selected items stack size is greater than 1.

 

To reproduce run these commands:

/scoreboard objectives add used_chest minecraft.used:minecraft.chest
/scoreboard objectives setdisplay sidebar used_chest
Add a single chest to a hotbar slot and place it - the objective isn't incremented.
Add 2 or more chests to a hotbar slot and place them - all but the last item will increment the objective.
This is true even in creative where items aren't used.
 
It seems to happen for stackable items that can be placed.
From my testing it happens with:
chest, barrel, oak_planks, oak_sapling, sheep_spawn_egg (weird)
But not with:
acacia_boat, ender_pearl, flint_and_steel

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.