-
Bug
-
Resolution: Unresolved
-
None
-
1.16.4, 20w51a, 21w03a, 1.16.5, 21w05b, 21w08b, 21w10a, 21w11a, 21w13a, 21w15a, 21w16a, 21w19a, 1.17 Pre-release 1, 1.17, 1.17.1, 21w37a, 1.18.1, 22w03a, 22w05a, 1.18.2 Pre-release 1, 1.18.2, 22w11a, 22w12a, 1.19 Release Candidate 2, 1.19, 1.19.1, 1.19.2, 1.19.3 Release Candidate 1, 1.19.3 Release Candidate 2, 1.19.3, 23w03a, 23w05a, 1.19.4, 23w17a, 23w18a, 1.20 Pre-release 7, 23w31a, 1.20.2, 23w42a, 24w33a, 1.21.1
-
Confirmed
-
Commands, Save Data
The bug
When an NBT path modifies the target tag and the NBT operation fails, it is reported as not being changed even though the target tag is actually changed.
How to reproduce
- Set the dummy value to make the storage mc-208974: non-empty.
/data modify storage mc-208974: dummy set value 0
MatchObjectNode → AllElementsNode
- Make sure that _ does not exist.
/data remove storage mc-208974: _
/data modify storage mc-208974: _{}[] set value 0
→ "Nothing changed. The specified properties already have these values"
/data get storage mc-208974: _
→ "Storage mc-208974: has the following contents: {}": _ is actually changed to {}.
This case will be automatically resolved when MC-170124 is fixed.
MatchElementNode → AllElementsNode
- Make sure that _ does not exist.
/data remove storage mc-208974: _
/data modify storage mc-208974: _[{}][] set value 0
→ "Nothing changed. The specified properties already have these values"
/data get storage mc-208974: _
→ "Storage mc-208974: has the following contents: [{}]": _ is actually changed to [{}].
This case will be automatically resolved when MC-170124 is fixed.
IndexedElementNode
- Make sure that _ does not exist.
/data remove storage mc-208974: _
/data modify storage mc-208974: _[0] set value 0
→ "Nothing changed. The specified properties already have these values"
/data get storage mc-208974: _
→ "Storage mc-208974: has the following contents: []": _ is actually changed to [].
This case will not be automatically resolved even if MC-170124 is fixed. If _ has a collection tag with size 1 or larger, this command will succeed.
- relates to
-
MC-170124 Compound filters in the NBT path can be followed by an array index
- Open