Jump to content

Forge breaking scoreboard objective "used.chest" with NBT set


Valkon

Recommended Posts

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!

 

 

 

 
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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