diff --git a/test/files/correct/data_bp/animation_controllers/chicken.controller.json b/test/files/correct/data_bp/animation_controllers/chicken.controller.json new file mode 100644 index 00000000..03bf41a1 --- /dev/null +++ b/test/files/correct/data_bp/animation_controllers/chicken.controller.json @@ -0,0 +1,17 @@ +{ + "format_version": "1.10.0", + "animation_controllers": { + "controller.animation.chicken": { + "initial_state": "default", + "states": { + "default": { + "on_entry": ["@s machine.click", "/tag @a add Something"], + "transitions": [{ "transition": "variable.attack_time && query.anim_time > 0" }] + }, + "transition": { + "animations": ["idle"] + } + } + } + } +} diff --git a/test/files/correct/data_bp/animation_controllers/sheep.walk.controller.json b/test/files/correct/data_bp/animation_controllers/sheep.walk.controller.json new file mode 100644 index 00000000..f485b1d7 --- /dev/null +++ b/test/files/correct/data_bp/animation_controllers/sheep.walk.controller.json @@ -0,0 +1,24 @@ +{ + "format_version" : "1.10.0", + "animation_controllers" : { + "controller.animation.sheep.walk.example" : { + "initial_state" : "default", + "states" : { + "default" : { + "animations" : [ "default_animation" ], + "transitions" : [ + { "state_1" : "query.is_baby" } + ] + }, + "state_1" : { + "animations" : [ "state_animation" ], + "on_entry": ["@s example:foor", "variable.foo = query.average_frame_time;", "/tp @s ~ ~ ~"], + "on_exit": ["/tp @s ~ ~2 ~"], + "transitions" : [ + { "default" : "!query.is_baby" } + ] + } + } + } + } +} \ No newline at end of file diff --git a/test/files/correct/data_bp/animations/sheep.run.animation.json b/test/files/correct/data_bp/animations/sheep.run.animation.json new file mode 100644 index 00000000..1fc65c95 --- /dev/null +++ b/test/files/correct/data_bp/animations/sheep.run.animation.json @@ -0,0 +1,13 @@ +{ + "format_version": "1.8.0", + "animations": { + "animation.sheep.run": { + "loop": false, + "timeline": { + "0.0": ["/tag @a[tag=Killing,scores={test=!0..10},c=1] add Killing"], + "1.36": ["/tp @s ~ -40 ~", "/kill @s", "/tag @a[tag=Killing,scores={test=!0..10}] add Killing"] + }, + "animation_length": 1.5 + } + } +} diff --git a/test/files/correct/data_bp/blocks/master.block.json b/test/files/correct/data_bp/blocks/master.block.json new file mode 100644 index 00000000..df1404ad --- /dev/null +++ b/test/files/correct/data_bp/blocks/master.block.json @@ -0,0 +1,16 @@ +{ + "format_version": "1.16.200", + "minecraft:block": { + "description": { + "identifier": "namespace:block", + "properties": {} + }, + "components": {}, + "events": { + "minecraft:on_fall_on": { + "add_mob_effect": {}, + "sequence": [{ "die": {} }] + } + } + } +} diff --git a/test/files/correct/data_bp/entities/dragon.entity.json b/test/files/correct/data_bp/entities/dragon.entity.json new file mode 100644 index 00000000..da15af12 --- /dev/null +++ b/test/files/correct/data_bp/entities/dragon.entity.json @@ -0,0 +1,15 @@ +{ + "format_version": "1.16.0", + "minecraft:entity": { + "description": { + "identifier": "blockception:dragon", + "is_spawnable": true, + "is_summonable": true + }, + "component_groups": {}, + "components": { + "minecraft:health": { "value": 10, "max": 10 } + }, + "events": {} + } +} diff --git a/test/files/correct/data_bp/entities/dragon_born.entity.json b/test/files/correct/data_bp/entities/dragon_born.entity.json new file mode 100644 index 00000000..a3b927ec --- /dev/null +++ b/test/files/correct/data_bp/entities/dragon_born.entity.json @@ -0,0 +1,17 @@ +{ + "format_version": "1.16.0", + "minecraft:entity": { + "description": { + "identifier": "blockception:dragon_born", + "is_spawnable": true, + "is_summonable": true + }, + "component_groups": { + }, + "components": { + "minecraft:health": { "value": 10, "max": 10 } + }, + "events": { + } + } +} \ No newline at end of file diff --git a/test/files/correct/data_bp/entities/example.chicken.json b/test/files/correct/data_bp/entities/example.chicken.json new file mode 100644 index 00000000..be7c5960 --- /dev/null +++ b/test/files/correct/data_bp/entities/example.chicken.json @@ -0,0 +1,52 @@ +{ + "format_version": "1.16.0", + "minecraft:entity": { + "description": { + "identifier": "example:chicken", + "animations": { + "controller": "controller.animation.chicken", + "something": "controller.i.dont.exist" + }, + "scripts": { + "animate": ["controller"] + } + }, + "component_groups": {}, + "components": { + "minecraft:interact": { + "interactions": [ + { + "add_items": { "table": "loot_tables/entities/vending.machine.json" }, + "play_sounds": "random.levelup", + "use_item": true, + "swing": true, + "on_interact": { + "filters": { + "all_of": [ + { "test": "is_family", "value": "player" }, + { "test": "has_equipment", "subject": "other", "domain": "hand", "value": "minecraft:gold_nugget" } + ] + } + } + }, + { + "on_interact": { + "filters": { + "all_of": [ + { "test": "is_family", "value": "player" }, + { "test": "has_equipment", "subject": "other", "domain": "hand", "operator": "not", "value": "minecraft:gold_nugget" } + ] + }, + "event": "no_gold" + } + } + ] + } + }, + "events": { + "no_gold": { + "add": { "component_groups": ["example:non_existing"]} + } + } + } +} diff --git a/test/files/correct/data_bp/entities/sheep.entity.json b/test/files/correct/data_bp/entities/sheep.entity.json new file mode 100644 index 00000000..9c7000b6 --- /dev/null +++ b/test/files/correct/data_bp/entities/sheep.entity.json @@ -0,0 +1,17 @@ +{ + "format_version": "1.16.0", + "minecraft:entity": { + "description": { + "identifier": "blockception:sheep", + "is_spawnable": true, + "is_summonable": true + }, + "component_groups": { + }, + "components": { + "minecraft:health": { "value": 10, "max": 10 } + }, + "events": { + } + } +} \ No newline at end of file diff --git a/test/files/correct/data_bp/entities/sheep.json b/test/files/correct/data_bp/entities/sheep.json new file mode 100644 index 00000000..bc93840d --- /dev/null +++ b/test/files/correct/data_bp/entities/sheep.json @@ -0,0 +1,16 @@ +{ + "format_version": "1.16.0", + "minecraft:entity": { + "description": { + "identifier": "blockception:sheep", + "is_spawnable": true, + "is_summonable": true + }, + "component_groups": { + }, + "components": { + }, + "events": { + } + } +} \ No newline at end of file diff --git a/test/files/correct/data_bp/functions/tick.json b/test/files/correct/data_bp/functions/tick.json new file mode 100644 index 00000000..d36b5912 --- /dev/null +++ b/test/files/correct/data_bp/functions/tick.json @@ -0,0 +1,3 @@ +{ + "values": ["gameplay/world_tick"] +} diff --git a/test/files/correct/data_bp/items/master_block.item.json b/test/files/correct/data_bp/items/master_block.item.json new file mode 100644 index 00000000..0795b793 --- /dev/null +++ b/test/files/correct/data_bp/items/master_block.item.json @@ -0,0 +1,10 @@ +{ + "format_version": "1.10.0", + "minecraft:item": { + "description": { + "identifier": "master_block" + }, + "components": { + } + } +} \ No newline at end of file diff --git a/test/files/correct/data_bp/items/test.item.json b/test/files/correct/data_bp/items/test.item.json new file mode 100644 index 00000000..4609d570 --- /dev/null +++ b/test/files/correct/data_bp/items/test.item.json @@ -0,0 +1,14 @@ +{ + "format_version": "1.16.200", + "minecraft:item": { + "description": { + "identifier": "namespace:item" + }, + "components": { + "minecraft:armor": { + "protection": 0, + "texture_type": "" + } + } + } +} \ No newline at end of file diff --git a/test/files/correct/data_bp/loot_tables/books/journal1.loot.json b/test/files/correct/data_bp/loot_tables/books/journal1.loot.json new file mode 100644 index 00000000..b9fa300f --- /dev/null +++ b/test/files/correct/data_bp/loot_tables/books/journal1.loot.json @@ -0,0 +1,25 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "item", + "name": "minecraft:written_book", + "functions": [ + { + "function": "set_book_contents", + "author": "both.name", + "title": "book.j1.title", + "pages": [ + "{\"rawtext\":[ {\"translate\":\"book.journal1.page1\",\"with\": [ \"\\n\" ] } ] }", + "{\"rawtext\":[ {\"translate\":\"book.journal1.page2\",\"with\": [ \"\\n\" ] } ] }", + "{\"rawtext\":[ {\"translate\":\"book.journal1.page3\",\"with\": [ \"\\n\" ] } ] }" + ] + } + ] + } + ] + } + ] +} diff --git a/test/files/correct/data_bp/loot_tables/master_blockloot.json b/test/files/correct/data_bp/loot_tables/master_blockloot.json new file mode 100644 index 00000000..5c5f2008 --- /dev/null +++ b/test/files/correct/data_bp/loot_tables/master_blockloot.json @@ -0,0 +1,14 @@ +{ + "pools": [ + { + "rolls": 1, + "entries": [ + { + "type": "item", + "name": "minecraft:potato", + "weight": 1 + } + ] + } + ] +} \ No newline at end of file diff --git a/test/files/correct/data_bp/texts/languages.json b/test/files/correct/data_bp/texts/languages.json new file mode 100644 index 00000000..af6cf27b --- /dev/null +++ b/test/files/correct/data_bp/texts/languages.json @@ -0,0 +1,31 @@ +[ + "en_US", + "en_GB", + "de_DE", + "es_ES", + "es_MX", + "fr_FR", + "fr_CA", + "it_IT", + "ja_JP", + "ko_KR", + "pt_BR", + "pt_PT", + "ru_RU", + "zh_CN", + "zh_TW", + "nl_NL", + "bg_BG", + "cs_CZ", + "da_DK", + "el_GR", + "fi_FI", + "hu_HU", + "id_ID", + "nb_NO", + "pl_PL", + "sk_SK", + "sv_SE", + "tr_TR", + "uk_UA" +] diff --git a/test/files/correct/data_rp/sounds.json b/test/files/correct/data_rp/sounds.json new file mode 100644 index 00000000..d2c6e65c --- /dev/null +++ b/test/files/correct/data_rp/sounds.json @@ -0,0 +1,5 @@ +{ + "entity_sounds": { + "entities": {} + } +}