From 0bdfd5a9952f240d0557f101f871f5453d5e9597 Mon Sep 17 00:00:00 2001 From: rarula <74240663+rarula@users.noreply.github.com> Date: Fri, 7 Apr 2023 17:15:33 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=90=20=E8=8B=B1=E8=AA=9E=E3=81=AB?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 +++ README_en.md | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 README_en.md diff --git a/README.md b/README.md index c3b436a..a4ccf84 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +日本語 | [English](README_en.md) +

+
# Sketch diff --git a/README_en.md b/README_en.md new file mode 100644 index 0000000..90fb084 --- /dev/null +++ b/README_en.md @@ -0,0 +1,74 @@ +[日本語](README.md) | English +

+ +
+ +# Sketch +A mcfunction framework for easily building inventory menus + +![Sketch v2 0 0_en](https://user-images.githubusercontent.com/74240663/230566348-ad6e083e-448d-4b90-b772-df668f542ea5.gif) +The datapack for this example is located in the [Example](Example) directory + +
+ +## Supported Versions +- 1.19.4 + +## Download +See [Releases](https://github.com/rarula/Sketch/releases) + +## Dependencies +To use this datapack, the following datapacks must be installed +- [Oh! My Dat! 1.19](https://github.com/Ai-Akaishi/OhMyDat) (MIT License) +- [Close Detector 1.19](https://github.com/Ai-Akaishi/CloseDetector) (MIT License) +- [Player Item Tuner 1.19](https://github.com/Ai-Akaishi/PlayerItemTuner) (MIT License) + +## Usage +```mcfunction +#> menu:main/ + +item replace block 10000 0 10000 container.0 with minecraft:gray_stained_glass_pane +data modify storage sketch: in.key set value "f" +function sketch:api/register_item/button + +item replace block 10000 0 10000 container.0 with minecraft:gold_block +data modify storage sketch: in.key set value "G" +data modify storage sketch: in.listener set value "give" +function sketch:api/register_item/button + + +data modify storage sketch: in.contents append value [f, f, f, f, f, f, f, f, f] +data modify storage sketch: in.contents append value [f, -, -, -, G, -, -, -, f] +data modify storage sketch: in.contents append value [f, f, f, f, f, f, f, f, f] + +data modify storage sketch: in.id set value "main" +function sketch:api/build/auto +``` +```mcfunction +#> menu:main/listener + +execute if data storage sketch: callback{listener:"give"} run give @s minecraft:gold_block 1 +``` + +For detailed instructions, see [here](https://github.com/rarula/Sketch/wiki/Tutorial) + +## Cautionary Points +- Forceload the coordinates 10000 10000 and place the shulker box at the following coordinates + - 10000 0 10000 + - 10000 1 10000 + - 10000 2 10000 + +## About Previous Versions +If you have been using an previous version of Sketch, you can delete objects that are no longer needed by running the following command. +```mcfunction +scoreboard objectives remove SketchDrop +scoreboard objectives remove SketchId + +setblock 10000 -64 10000 minecraft:air +``` + +## Contact + + +## License +[CC0-1.0](LICENSE)