Skip to content

Commit

Permalink
fixing more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed Nov 8, 2024
1 parent 05e2db1 commit 7d5ce03
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 108 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"oneOf": [
{
"type": "string",
"$ref": "#/definitions/color"
},
{
Expand Down
7 changes: 3 additions & 4 deletions source/behavior/items/format/minecraft.item.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,15 @@
}
},
"components": {
"additionalProperties": { "type": "object" },
"type": "object",
"description": "The components of this item.",
"properties": {
"minecraft:allow_off_hand": {"$ref": "./components/allow_off_hand.json"},
"minecraft:allow_off_hand": { "$ref": "./components/allow_off_hand.json" },
"minecraft:block_placer": { "$ref": "./components/block_placer.json" },
"minecraft:can_destroy_in_creative": {"$ref": "./components/can_destroy_in_creative.json"},
"minecraft:can_destroy_in_creative": { "$ref": "./components/can_destroy_in_creative.json" },
"minecraft:cooldown": { "$ref": "./components/cooldown.json" },
"minecraft:custom_components": { "$ref": "./components/custom_components.json" },
"minecraft:damage": {"$ref": "./components/damage.json"},
"minecraft:damage": { "$ref": "./components/damage.json" },
"minecraft:digger": { "$ref": "./components/digger.json" },
"minecraft:display_name": { "$ref": "./components/display_name.json" },
"minecraft:durability": { "$ref": "./components/durability.json" },
Expand Down
6 changes: 1 addition & 5 deletions test/files/correct/data_bp/entities/equippable.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
"minecraft:equippable": {
"slots": [
{
"accepted_items": [
{
"tags": "query.any_tag('minecraft:is_tool')"
}
],
"accepted_items": ["minecraft:tool"],
"item": {
"tags": "query.any_tag('minecraft:is_tool')"
},
Expand Down

This file was deleted.

This file was deleted.

17 changes: 0 additions & 17 deletions test/files/correct/data_bp/features/conditional_list_feature.json

This file was deleted.

11 changes: 0 additions & 11 deletions test/files/correct/data_bp/features/hell_cave_carver_feature.json

This file was deleted.

21 changes: 0 additions & 21 deletions test/files/correct/data_bp/features/rect_layout_feature.json

This file was deleted.

11 changes: 0 additions & 11 deletions test/files/correct/data_bp/features/scan_surface_feature.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"format_version": "1.13.0",
"format_version": "1.13.0",

"minecraft:single_block_feature": {
"description": {
"identifier": "scan_surface_features:scan_surface_feature_obsidian"
},
"minecraft:single_block_feature": {
"description": {
"identifier": "scan_surface_features:scan_surface_feature_obsidian"
},

"places_block": "minecraft:obsidian",
"places_block": "minecraft:obsidian",

"enforce_placement_rules": false,
"enforce_survivability_rules": false
}
}
"enforce_placement_rules": false,
"enforce_survivability_rules": false
}
}
4 changes: 3 additions & 1 deletion test/files/correct/data_bp/items/test1.item.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"minecraft:damage": 2,
"minecraft:stacked_by_data": true,
"minecraft:should_despawn": true,
"minecraft:hover_text_color": "aqua",
"minecraft:hover_text_color": {

},
"minecraft:use_animation": "brush",
"minecraft:use_modifiers": {
"use_duration": 2
Expand Down

0 comments on commit 7d5ce03

Please sign in to comment.