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

 

Duplicate

姓甚名谁

2019-07-25, 06:39 AM

2020-07-24, 05:34 PM

2020-07-24, 05:34 PM

1

2

Unconfirmed

(Unassigned)

1.14.4, 1.15.2

-