From 5348f41fc864de80776d197e3f5508695fce567e Mon Sep 17 00:00:00 2001 From: DrAv0011 <43525295+DrAv0011@users.noreply.github.com> Date: Mon, 18 Mar 2019 23:21:41 +0100 Subject: [PATCH 1/4] Add files via upload --- README.md | 23 ++-- README.txt | 112 ++++++++++++++++ cc+act_example.json | 318 ++++++++++++++++++++++++++++++++++++++++++++ cc+act_rp.mcpack | Bin 0 -> 7045 bytes imgs/icon.png | Bin 1611 -> 2040 bytes index.html | 4 +- scripts/main.js | 54 ++++++-- 7 files changed, 493 insertions(+), 18 deletions(-) create mode 100644 README.txt create mode 100644 cc+act_example.json create mode 100644 cc+act_rp.mcpack diff --git a/README.md b/README.md index 14fd613..8b37f04 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# Chain-Crafting +### Chain-Crafting Chain Crafting is a custom crafting engine made for Minecraft Bedrock. It works by chaining the ```minecraft:interact``` component with events and component groups. Since this is a task you don't want to do by hand, I made this generator to do the work. You can get the items you put into the "crafting table" back at any point in time by sneaking & interacting with the entity. That's one of the very special features of the Chain Crafting system: It saves the current input! ### Usage -Visit https://solveddev.github.io/Chain-Crafting or download this repository and open the index.html file in the browser of your choice. Write a JSON file to describe the recipes you want to add with the following syntax: +Write a JSON file to describe the recipes you want to add with the following syntax: ```javascript { - "entity": "minecraft:shulker", + "entity": "av:act", "recipes": [ { "ingredients": [ @@ -26,16 +26,18 @@ Visit https://solveddev.github.io/Chain-Crafting or download this repository and ] } ``` -After a short amount of time, the page downloads the result of the generator as a .zip file. This archive contains a "loot_tables" & "entities" folder. In order to add the system to your behavior pack, drag the chain_crafting.zip file into your BP and unpackage it there. If you did it the right way, you should not see a "chain_crafting" folder in your BP. +You also have an example of multiple crafting recipes in one file in the main folder. Open the index.html file found in the main folder, then click on "import JSON file" and upload your already written JSON file. +After a short amount of time, the page downloads the result of the generator as a "cc+act_bp.mcpack" file, open it, and once loaded open the "cc+act_rp.mcpack" file stored in the main folder. +Now just create a world, add the behaviour pack and the resource pack to it, enable experimental gameplay, and have fun :D -If you do, move the "entities" & "loot_tables" folder into the BP root folder and remove the now empty "chain_crafting" folder +For now is only possible to summon the ACT in creative, so for it to not be destroyed by accident the entity is not punchable. To remove it, stand next to it and enter the following minecraft command "/kill @e[type=!player,c=1] ### Other Examples You can also add multiple ingredients. In this case, you start by interacting with the first item defined, then you need to interact with the second one, etc. ```javascript { - "entity": "minecraft:shulker", + "entity": "av:act", "recipes": [ { "ingredients": [ @@ -67,7 +69,7 @@ You can also add multiple ingredients. In this case, you start by interacting wi Chain Crafting also supports multiple results: ```javascript { - "entity": "minecraft:shulker", + "entity": "av:act", "recipes": [ { "ingredients": [ @@ -103,4 +105,9 @@ Chain Crafting also supports multiple results: } ] } -``` \ No newline at end of file +``` + +### Credits + +The original creator of the Chain Crafting (CC) system used in this generator is solvedDev (https://twitter.com/solvedDev), the creator of the Advanced Crafting Table (ACT), and modifier of the CC system is DrAv0011 (https://twitter.com/DrAv0011)(https://www.youtube.com/channel/UCFUG8RhqH6y1wfcVpLR7fFg). +The texture of the ACT is from the old Minecraft Java mod RedPower2. \ No newline at end of file diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..c58d083 --- /dev/null +++ b/README.txt @@ -0,0 +1,112 @@ +### Chain-Crafting +Chain Crafting is a custom crafting engine made for Minecraft Bedrock. It works by chaining the ```minecraft:interact``` component with events and component groups. Since this is a task you don't want to do by hand, I made this generator to do the work. +You can get the items you put into the "crafting table" back at any point in time by sneaking & interacting with the entity. That's one of the very special features of the Chain Crafting system: It saves the current input! + +### Usage +Write a JSON file to describe the recipes you want to add with the following syntax: + +{ + "entity": "av:act", + "recipes": [ + { + "ingredients": [ + { + "item": "minecraft:iron_ingot", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:iron_nugget", + "data": 0, + "count": 9 + } + ] + } + ] +} + +You also have an example of multiple crafting recipes in one file in the main folder. Open the index.html file found in the main folder, then click on "import JSON file" and upload your already written JSON file. +After a short amount of time, the page downloads the result of the generator as a "cc+act_bp.mcpack" file, open it, and once loaded open the "cc+act_rp.mcpack" file stored in the main folder. +Now just create a world, add the behaviour pack and the resource pack to it, enable experimental gameplay, and have fun :D + +For now is only possible to summon the ACT in creative, so for it to not be destroyed by accident the entity is not punchable. To remove it, stand next to it and enter the following minecraft command "/kill @e[type=!player,c=1] + +### Other Examples +You can also add multiple ingredients. In this case, you start by interacting with the first item defined, then you need to interact with the second one, etc. + +{ + "entity": "av:act", + "recipes": [ + { + "ingredients": [ + { + "item": "minecraft:stick", + "data": 0 + }, + { + "item": "minecraft:iron_ingot", + "data": 0 + }, + { + "item": "minecraft:iron_ingot", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:iron_sword", + "data": 0, + "count": 1 + } + ] + } + ] +} + + +Chain Crafting also supports multiple results: + +{ + "entity": "av:act", + "recipes": [ + { + "ingredients": [ + { + "item": "minecraft:stick", + "data": 0 + }, + { + "item": "minecraft:iron_ingot", + "data": 0 + }, + { + "item": "minecraft:iron_ingot", + "data": 0 + }, + { + "item": "minecraft:iron_ingot", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:iron_sword", + "data": 0, + "count": 1 + }, + { + "item": "minecraft:iron_nugget", + "data": 0, + "count": 9 + } + ] + } + ] +} + + +### Credits + +The original creator of the Chain Crafting (CC) system used in this generator is solvedDev (https://twitter.com/solvedDev), the creator of the Advanced Crafting Table (ACT), and modifier of the CC system is DrAv0011 (https://twitter.com/DrAv0011)(https://www.youtube.com/channel/UCFUG8RhqH6y1wfcVpLR7fFg). +The texture of the ACT is from the old Minecraft Java mod RedPower2. \ No newline at end of file diff --git a/cc+act_example.json b/cc+act_example.json new file mode 100644 index 0000000..a50ccd2 --- /dev/null +++ b/cc+act_example.json @@ -0,0 +1,318 @@ +{ + "entity": "av:act", + "never_despawn": true, + "recipes": [ + { + "ingredients": [ + { + "item": "minecraft:iron_ingot", + "data": 0 + }, + { + "item": "minecraft:leather", + "data": 0 + }, + { + "item": "minecraft:leather", + "data": 0 + }, + { + "item": "minecraft:leather", + "data": 0 + }, + { + "item": "minecraft:leather", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:saddle", + "data": 0, + "count": 1 + } + ] + }, + { + "ingredients": [ + { + "item": "minecraft:iron_ingot", + "data": 0 + }, + { + "item": "minecraft:iron_ingot", + "data": 0 + }, + { + "item": "minecraft:iron_ingot", + "data": 0 + }, + { + "item": "minecraft:iron_ingot", + "data": 0 + }, + { + "item": "minecraft:iron_ingot", + "data": 0 + }, + { + "item": "minecraft:iron_ingot", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:horsearmoriron", + "data": 0, + "count": 1 + } + ] + }, + { + "ingredients": [ + { + "item": "minecraft:gold_ingot", + "data": 0 + }, + { + "item": "minecraft:gold_ingot", + "data": 0 + }, + { + "item": "minecraft:gold_ingot", + "data": 0 + }, + { + "item": "minecraft:gold_ingot", + "data": 0 + }, + { + "item": "minecraft:gold_ingot", + "data": 0 + }, + { + "item": "minecraft:gold_ingot", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:horsearmorgold", + "data": 0, + "count": 1 + } + ] + }, + { + "ingredients": [ + { + "item": "minecraft:diamond", + "data": 0 + }, + { + "item": "minecraft:diamond", + "data": 0 + }, + { + "item": "minecraft:diamond", + "data": 0 + }, + { + "item": "minecraft:diamond", + "data": 0 + }, + { + "item": "minecraft:diamond", + "data": 0 + }, + { + "item": "minecraft:diamond", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:horsearmordiamond", + "data": 0, + "count": 1 + } + ] + }, + { + "ingredients": [ + { + "item": "minecraft:ice", + "data": 0 + }, + { + "item": "minecraft:ice", + "data": 0 + }, + { + "item": "minecraft:ice", + "data": 0 + }, + { + "item": "minecraft:ice", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:packed_ice", + "data": 0, + "count": 1 + } + ] + }, + { + "ingredients": [ + { + "item": "minecraft:diamond", + "data": 0 + }, + { + "item": "minecraft:diamond", + "data": 0 + }, + { + "item": "minecraft:diamond", + "data": 0 + }, + { + "item": "minecraft:prismarine_shard", + "data": 0 + }, + { + "item": "minecraft:prismarine_shard", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:trident", + "data": 0, + "count": 1 + } + ] + }, + { + "ingredients": [ + { + "item": "minecraft:dirt", + "data": 0 + }, + { + "item": "minecraft:wheat_seeds", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:grass", + "data": 0, + "count": 1 + } + ] + }, + { + "ingredients": [ + { + "item": "minecraft:iron_ingot", + "data": 0 + }, + { + "item": "minecraft:paper", + "data": 0 + }, + { + "item": "minecraft:paper", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:name_tag", + "data": 0, + "count": 1 + } + ] + }, + { + "ingredients": [ + { + "item": "minecraft:stone", + "data": 0 + }, + { + "item": "minecraft:iron_ingot", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:iron_ore", + "data": 0, + "count": 1 + } + ] + }, + { + "ingredients": [ + { + "item": "minecraft:stone", + "data": 0 + }, + { + "item": "minecraft:gold_ingot", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:gold_ore", + "data": 0, + "count": 1 + } + ] + }, + { + "ingredients": [ + { + "item": "minecraft:stone", + "data": 0 + }, + { + "item": "minecraft:emerald", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:emerald_ore", + "data": 0, + "count": 1 + } + ] + }, + { + "ingredients": [ + { + "item": "minecraft:stone", + "data": 0 + }, + { + "item": "minecraft:diamond", + "data": 0 + } + ], + "results": [ + { + "item": "minecraft:diamond_ore", + "data": 0, + "count": 1 + } + ] + } + ] +} \ No newline at end of file diff --git a/cc+act_rp.mcpack b/cc+act_rp.mcpack new file mode 100644 index 0000000000000000000000000000000000000000..8cf61945ab4419019ddabca041dca4dcdc9eeadd GIT binary patch literal 7045 zcmaJ`1z1#D*FH4D&@rSmD2+4<0)l{a3Meu3(98gm(jh6*Fw)YkC@BrnB@F`7T@oU~ zKYU)V-uwCeXP))!v(N0c_FilDto^R{s41eMlL7#M4G0#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YS3>y+u3=UcOAK?aZ UiCjnb0RR9107*qoM6N<$f~2VCfdBvi diff --git a/index.html b/index.html index 4fe73c4..9cd5e42 100644 --- a/index.html +++ b/index.html @@ -2,12 +2,12 @@ - Chain Crafting + Chain Crafting + Advanced Crafting Table -

Chain Crafting

+

Chain Crafting + Advanced Crafting Table (Original CC creator solvedDev, ACT creator+ modifier DrAv0011)

diff --git a/scripts/main.js b/scripts/main.js index 8b01743..9b8d868 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -1,14 +1,31 @@ var entity = { + "format_version": "1.8.0", "minecraft:entity": { - "format_version": "1.4.0", + "description": { + "identifier": "", + "is_spawnable": true, + "is_summonable": true, + "is_experimental": true + }, "components": { - "minecraft:identifier": { - "id": "" + "minecraft:health": { + "value": 2, + "max": 2 }, "minecraft:damage_sensor": { "cause": "any", "deals_damage": false }, + "minecraft:knockback_resistance": { + "value": 100, + "max": 100 + }, + "minecraft:push_through": { + "value": 1 + }, + "minecraft:loot": { + "table": "loot_tables/act.json" + }, "minecraft:physics": {} }, "component_groups": { @@ -18,7 +35,8 @@ var entity = { "add_effects": [ { "effect": "strength", - "duration": 9999 + "duration": 9999, + "visible": false } ], "remove_effects": [ "haste", "jump_boost" ] @@ -37,6 +55,23 @@ var entity = { } } }; +var manifest = { + "format_version": 1, + "header": { + "description": "BP(Chain Crafting by solvedDev + Advanced Crafting Table by DrAv0011)", + "name": "BP(Chain Crafting + Advanced Crafting Table)", + "uuid": "ab7eaccb-53ec-4417-a417-7b11aba7566b", + "version": [1, 0, 0] + }, + "modules": [ + { + "description": "BP(Chain Crafting by solvedDev + Advanced Crafting Table by DrAv0011)", + "type": "data", + "uuid": "bbb90cbb-0c26-4731-9de7-93655b5720fb", + "version": [1, 0, 0] + } + ] +} var c_names = []; var loot = { normal: {}, results: {} }; class Interaction { @@ -89,7 +124,7 @@ function loadFile(pFile) { } function parseCrafting(pC) { - entity["minecraft:entity"]["components"]["minecraft:identifier"]["id"] = pC["entity"]; + entity["minecraft:entity"]["description"]["identifier"] = pC["entity"]; let recipes = pC["recipes"]; for(let i = 0; i < recipes.length; i++) { @@ -106,7 +141,8 @@ function parseCrafting(pC) { for(let key in loot.normal) { addToZip("loot_tables/chain_crafting/destruct/"+ key + ".json", JSON.stringify(loot.normal[key], undefined, "\t")); } - downloadZip("chain_crafting.zip"); + addToZip("manifest" + ".json", JSON.stringify(manifest, undefined, "\t")); + downloadZip("cc+act_bp.mcpack"); location.reload(); } @@ -161,7 +197,8 @@ function generateState(pS, pArr, pEnd, pFirst, pLast, pResults) { add_effects: [ { effect: "haste", - duration: 9999 + duration: 9999, + visible: false } ], remove_effects: [ "strength" ] @@ -174,7 +211,8 @@ function generateState(pS, pArr, pEnd, pFirst, pLast, pResults) { add_effects: [ { effect: "jump_boost", - duration: 9999 + duration: 9999, + visible: false } ], remove_effects: [ "strength", "haste" ] From 3e009af0170e23b354be17385fb33da7457ff08e Mon Sep 17 00:00:00 2001 From: DrAv0011 <43525295+DrAv0011@users.noreply.github.com> Date: Mon, 18 Mar 2019 23:30:27 +0100 Subject: [PATCH 2/4] Delete chain_crafting.json --- chain_crafting.json | 318 -------------------------------------------- 1 file changed, 318 deletions(-) delete mode 100644 chain_crafting.json diff --git a/chain_crafting.json b/chain_crafting.json deleted file mode 100644 index f28d327..0000000 --- a/chain_crafting.json +++ /dev/null @@ -1,318 +0,0 @@ -{ - "entity": "minecraft:sheep", - "never_despawn": true, - "recipes": [ - { - "ingredients": [ - { - "item": "minecraft:iron_ingot", - "data": 0 - }, - { - "item": "minecraft:leather", - "data": 0 - }, - { - "item": "minecraft:leather", - "data": 0 - }, - { - "item": "minecraft:leather", - "data": 0 - }, - { - "item": "minecraft:leather", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:saddle", - "data": 0, - "count": 1 - } - ] - }, - { - "ingredients": [ - { - "item": "minecraft:iron_ingot", - "data": 0 - }, - { - "item": "minecraft:iron_ingot", - "data": 0 - }, - { - "item": "minecraft:iron_ingot", - "data": 0 - }, - { - "item": "minecraft:iron_ingot", - "data": 0 - }, - { - "item": "minecraft:iron_ingot", - "data": 0 - }, - { - "item": "minecraft:iron_ingot", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:horsearmoriron", - "data": 0, - "count": 1 - } - ] - }, - { - "ingredients": [ - { - "item": "minecraft:gold_ingot", - "data": 0 - }, - { - "item": "minecraft:gold_ingot", - "data": 0 - }, - { - "item": "minecraft:gold_ingot", - "data": 0 - }, - { - "item": "minecraft:gold_ingot", - "data": 0 - }, - { - "item": "minecraft:gold_ingot", - "data": 0 - }, - { - "item": "minecraft:gold_ingot", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:horsearmorgold", - "data": 0, - "count": 1 - } - ] - }, - { - "ingredients": [ - { - "item": "minecraft:diamond", - "data": 0 - }, - { - "item": "minecraft:diamond", - "data": 0 - }, - { - "item": "minecraft:diamond", - "data": 0 - }, - { - "item": "minecraft:diamond", - "data": 0 - }, - { - "item": "minecraft:diamond", - "data": 0 - }, - { - "item": "minecraft:diamond", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:horsearmordiamond", - "data": 0, - "count": 1 - } - ] - }, - { - "ingredients": [ - { - "item": "minecraft:ice", - "data": 0 - }, - { - "item": "minecraft:ice", - "data": 0 - }, - { - "item": "minecraft:ice", - "data": 0 - }, - { - "item": "minecraft:ice", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:packed_ice", - "data": 0, - "count": 1 - } - ] - }, - { - "ingredients": [ - { - "item": "minecraft:diamond", - "data": 0 - }, - { - "item": "minecraft:diamond", - "data": 0 - }, - { - "item": "minecraft:diamond", - "data": 0 - }, - { - "item": "minecraft:prismarine_shard", - "data": 0 - }, - { - "item": "minecraft:prismarine_shard", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:trident", - "data": 0, - "count": 1 - } - ] - }, - { - "ingredients": [ - { - "item": "minecraft:dirt", - "data": 0 - }, - { - "item": "minecraft:wheat_seeds", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:grass", - "data": 0, - "count": 1 - } - ] - }, - { - "ingredients": [ - { - "item": "minecraft:iron_ingot", - "data": 0 - }, - { - "item": "minecraft:paper", - "data": 0 - }, - { - "item": "minecraft:paper", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:name_tag", - "data": 0, - "count": 1 - } - ] - }, - { - "ingredients": [ - { - "item": "minecraft:stone", - "data": 0 - }, - { - "item": "minecraft:iron_ingot", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:iron_ore", - "data": 0, - "count": 1 - } - ] - }, - { - "ingredients": [ - { - "item": "minecraft:stone", - "data": 0 - }, - { - "item": "minecraft:gold_ingot", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:gold_ore", - "data": 0, - "count": 1 - } - ] - }, - { - "ingredients": [ - { - "item": "minecraft:stone", - "data": 0 - }, - { - "item": "minecraft:emerald", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:emerald_ore", - "data": 0, - "count": 1 - } - ] - }, - { - "ingredients": [ - { - "item": "minecraft:stone", - "data": 0 - }, - { - "item": "minecraft:diamond", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:diamond_ore", - "data": 0, - "count": 1 - } - ] - } - ] -} \ No newline at end of file From 617e3b4dabe4ae2849ee508e05136db2199ba33d Mon Sep 17 00:00:00 2001 From: DrAv0011 <43525295+DrAv0011@users.noreply.github.com> Date: Mon, 18 Mar 2019 23:30:37 +0100 Subject: [PATCH 3/4] Delete README.txt --- README.txt | 112 ----------------------------------------------------- 1 file changed, 112 deletions(-) delete mode 100644 README.txt diff --git a/README.txt b/README.txt deleted file mode 100644 index c58d083..0000000 --- a/README.txt +++ /dev/null @@ -1,112 +0,0 @@ -### Chain-Crafting -Chain Crafting is a custom crafting engine made for Minecraft Bedrock. It works by chaining the ```minecraft:interact``` component with events and component groups. Since this is a task you don't want to do by hand, I made this generator to do the work. -You can get the items you put into the "crafting table" back at any point in time by sneaking & interacting with the entity. That's one of the very special features of the Chain Crafting system: It saves the current input! - -### Usage -Write a JSON file to describe the recipes you want to add with the following syntax: - -{ - "entity": "av:act", - "recipes": [ - { - "ingredients": [ - { - "item": "minecraft:iron_ingot", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:iron_nugget", - "data": 0, - "count": 9 - } - ] - } - ] -} - -You also have an example of multiple crafting recipes in one file in the main folder. Open the index.html file found in the main folder, then click on "import JSON file" and upload your already written JSON file. -After a short amount of time, the page downloads the result of the generator as a "cc+act_bp.mcpack" file, open it, and once loaded open the "cc+act_rp.mcpack" file stored in the main folder. -Now just create a world, add the behaviour pack and the resource pack to it, enable experimental gameplay, and have fun :D - -For now is only possible to summon the ACT in creative, so for it to not be destroyed by accident the entity is not punchable. To remove it, stand next to it and enter the following minecraft command "/kill @e[type=!player,c=1] - -### Other Examples -You can also add multiple ingredients. In this case, you start by interacting with the first item defined, then you need to interact with the second one, etc. - -{ - "entity": "av:act", - "recipes": [ - { - "ingredients": [ - { - "item": "minecraft:stick", - "data": 0 - }, - { - "item": "minecraft:iron_ingot", - "data": 0 - }, - { - "item": "minecraft:iron_ingot", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:iron_sword", - "data": 0, - "count": 1 - } - ] - } - ] -} - - -Chain Crafting also supports multiple results: - -{ - "entity": "av:act", - "recipes": [ - { - "ingredients": [ - { - "item": "minecraft:stick", - "data": 0 - }, - { - "item": "minecraft:iron_ingot", - "data": 0 - }, - { - "item": "minecraft:iron_ingot", - "data": 0 - }, - { - "item": "minecraft:iron_ingot", - "data": 0 - } - ], - "results": [ - { - "item": "minecraft:iron_sword", - "data": 0, - "count": 1 - }, - { - "item": "minecraft:iron_nugget", - "data": 0, - "count": 9 - } - ] - } - ] -} - - -### Credits - -The original creator of the Chain Crafting (CC) system used in this generator is solvedDev (https://twitter.com/solvedDev), the creator of the Advanced Crafting Table (ACT), and modifier of the CC system is DrAv0011 (https://twitter.com/DrAv0011)(https://www.youtube.com/channel/UCFUG8RhqH6y1wfcVpLR7fFg). -The texture of the ACT is from the old Minecraft Java mod RedPower2. \ No newline at end of file From 01919fe327810210bc68f9fa221b2572e0dee5f4 Mon Sep 17 00:00:00 2001 From: DrAv0011 <43525295+DrAv0011@users.noreply.github.com> Date: Tue, 19 Mar 2019 16:12:11 +0100 Subject: [PATCH 4/4] Updated instruction in readme Added website and a easier way to use it --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8b37f04..82c0ca4 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,8 @@ Write a JSON file to describe the recipes you want to add with the following syn ] } ``` -You also have an example of multiple crafting recipes in one file in the main folder. Open the index.html file found in the main folder, then click on "import JSON file" and upload your already written JSON file. -After a short amount of time, the page downloads the result of the generator as a "cc+act_bp.mcpack" file, open it, and once loaded open the "cc+act_rp.mcpack" file stored in the main folder. +You also have an example of multiple crafting recipes in one file in the main folder. Open https://drav0011.github.io/ChainCrafting-AdvancedCraftingTable/, then click on "import JSON file" and upload your already written JSON file. +After a short amount of time, the page downloads the result of the generator as a "cc+act_bp.mcpack" file, open it, and once loaded open download the "cc+act_rp.mcpack" file and open it too. Now just create a world, add the behaviour pack and the resource pack to it, enable experimental gameplay, and have fun :D For now is only possible to summon the ACT in creative, so for it to not be destroyed by accident the entity is not punchable. To remove it, stand next to it and enter the following minecraft command "/kill @e[type=!player,c=1] @@ -110,4 +110,4 @@ Chain Crafting also supports multiple results: ### Credits The original creator of the Chain Crafting (CC) system used in this generator is solvedDev (https://twitter.com/solvedDev), the creator of the Advanced Crafting Table (ACT), and modifier of the CC system is DrAv0011 (https://twitter.com/DrAv0011)(https://www.youtube.com/channel/UCFUG8RhqH6y1wfcVpLR7fFg). -The texture of the ACT is from the old Minecraft Java mod RedPower2. \ No newline at end of file +The texture of the ACT is from the old Minecraft Java mod RedPower2.