Skip to content

Commit

Permalink
nbt-test.sk - add a vanilla NBT check
Browse files Browse the repository at this point in the history
- this is to make sure if there are errors we will know
  • Loading branch information
ShaneBeee committed Dec 5, 2024
1 parent 679ed9b commit 2e018d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/scripts/general/nbt-test.sk
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,15 @@ test "SkBee - simple nbt compound":
assert int tag "minecraft:custom_model_data" of {_n} is set with "tag ""minecraft:custom_model_data"" of an item should be set"
assert int tag "minecraft:custom_model_data" of {_n} = 1 with "tag ""minecraft:custom_model_data"" of an item should be 1"

# Test that vanilla NBT of an item works
set {_vn} to vanilla nbt of {_i}
assert {_vn} is set with "Vanilla NBT of an item should work"

# Test that Pretty nbt works
set {_pretty} to pretty nbt of {_n}
assert {_pretty} is set with "Pretty NBT should have worked"
set {_vp} to pretty nbt of {_vn}
assert {_vp} is set with "Pretty NBT of vanilla nbt should have worked"

# Test adding/removing to/from lists
set {_n} to empty nbt compound
Expand Down

0 comments on commit 2e018d6

Please sign in to comment.