mojira.dev
MC-157658

A small bug in /give

你好,开发者们:
这是我发现的一个小bug:

(我想,直接看视频,你就能明白我在说什么。)

我先向计分板添加了一个变量:
/scoreboard objectives add test minecraft.used:minecraft.snowball

然后我设置了两个命令方块。
give @a[scores={test=1..}] minecraft:snowball
scoreboard players set @a test 0

当我扔出一个雪球时,这两个命令方块会给我一个雪球物品。他们的确能给我一个雪球,但是这并未在界面中正确地显示。

例如,在下面这段视频中,我有8个雪球,然后我扔出了一个,然后命令方块给了我一个雪球。然而,在我的物品栏里,我只看见7个雪球。但是,当我丢弃一个雪球并捡起之后,8个雪球又重新正确地显示在了我的背包里

(translated by google translation🙂

Hello, developers:
This is a small bug I found:

(I think, watching the video directly, you can understand what I am talking about.)

I first added a variable to the scoreboard:
/scoreboard objectives add test minecraft.used:minecraft.snowball

Then I set up two command blocks.
give @a[scores={test=1..}] minecraft:snowball
scoreboard players set @a test 0

When I throw a snowball, these two command blocks will give me a new snowball item. They did give me a snowball, but it didn't show up correctly in the interface.

For example, in the video below, I have 8 snowballs, then I threw one, and the command block gave me a snowball. However, in my inventory, I only saw 7 snowballs. However, when I dropped a snowball and picked it up, the 8 snowballs were correctly displayed in my backpack again.

 

Attachments

Comments 3

Please check if that's still an issue for you in the latest 1.15.2 stable release

@@unknown 

Unfortunately, it still exists. 😞

[media]

Thank you for your report!
This seems to be another manifestation of MC-29318, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki

姓甚名谁

(Unassigned)

Unconfirmed

(Unassigned)

1.14.4, 1.15.2

Retrieved