From 2279f5044de70c7811a4fffff06c65468e27a127 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Wed, 9 Jun 2021 09:19:21 +0100 Subject: [PATCH] Nuke treasure disks They're datapacks now. Right??? --- .github/ISSUE_TEMPLATE/peripheral_shoutout.md | 2 +- .github/workflows/main-ci.yml | 3 + .gitignore | 2 +- .gitpod.Dockerfile | 2 +- .gitpod.yml | 2 +- .vscode/settings.json | 6 +- LICENSE | 14 +- README.md | 14 +- codeInspectionSettings.xml | 2 +- codeStyleSettings.xml | 2 +- config/pre-commit/config.yml | 3 +- patchwork.md | 32 +- .../computer_advanced_front_blink.png.mcmeta | 12 +- .../computer_command_front_blink.png.mcmeta | 12 +- .../computer_normal_front_blink.png.mcmeta | 12 +- .../item/pocket_computer_blink.png.mcmeta | 12 +- .../recipes/computercraft/cable.json | 2 +- .../computercraft/computer_advanced.json | 2 +- .../computercraft/computer_command.json | 2 +- .../recipes/computercraft/disk_1.json | 2 +- .../recipes/computercraft/disk_10.json | 2 +- .../recipes/computercraft/disk_11.json | 2 +- .../recipes/computercraft/disk_12.json | 2 +- .../recipes/computercraft/disk_13.json | 2 +- .../recipes/computercraft/disk_14.json | 2 +- .../recipes/computercraft/disk_15.json | 2 +- .../recipes/computercraft/disk_16.json | 2 +- .../recipes/computercraft/disk_2.json | 2 +- .../recipes/computercraft/disk_3.json | 2 +- .../recipes/computercraft/disk_4.json | 2 +- .../recipes/computercraft/disk_5.json | 2 +- .../recipes/computercraft/disk_6.json | 2 +- .../recipes/computercraft/disk_7.json | 2 +- .../recipes/computercraft/disk_8.json | 2 +- .../recipes/computercraft/disk_9.json | 2 +- .../recipes/computercraft/disk_drive.json | 2 +- .../computercraft/monitor_advanced.json | 2 +- .../recipes/computercraft/monitor_normal.json | 2 +- .../computercraft/speaker.json | 2 +- .../wireless_modem_advanced.json | 2 +- .../computercraft/wireless_modem_normal.json | 2 +- .../minecraft/crafting_table.json | 2 +- .../minecraft/diamond_axe.json | 2 +- .../minecraft/diamond_hoe.json | 2 +- .../minecraft/diamond_pickaxe.json | 2 +- .../minecraft/diamond_shovel.json | 2 +- .../minecraft/diamond_sword.json | 2 +- .../pocket_computer_advanced.json | 2 +- .../computercraft/pocket_computer_normal.json | 2 +- .../pocket_normal/computercraft/speaker.json | 2 +- .../wireless_modem_advanced.json | 2 +- .../computercraft/wireless_modem_normal.json | 2 +- .../minecraft/crafting_table.json | 2 +- .../pocket_normal/minecraft/diamond_axe.json | 2 +- .../pocket_normal/minecraft/diamond_hoe.json | 2 +- .../minecraft/diamond_pickaxe.json | 2 +- .../minecraft/diamond_shovel.json | 2 +- .../minecraft/diamond_sword.json | 2 +- .../recipes/computercraft/printer.json | 2 +- .../recipes/computercraft/speaker.json | 2 +- .../computercraft/speaker.json | 2 +- .../wireless_modem_advanced.json | 2 +- .../computercraft/wireless_modem_normal.json | 2 +- .../minecraft/crafting_table.json | 2 +- .../minecraft/diamond_axe.json | 2 +- .../minecraft/diamond_hoe.json | 2 +- .../minecraft/diamond_pickaxe.json | 2 +- .../minecraft/diamond_shovel.json | 2 +- .../minecraft/diamond_sword.json | 2 +- .../turtle_normal/computercraft/speaker.json | 2 +- .../wireless_modem_advanced.json | 2 +- .../computercraft/wireless_modem_normal.json | 2 +- .../minecraft/crafting_table.json | 2 +- .../turtle_normal/minecraft/diamond_axe.json | 2 +- .../turtle_normal/minecraft/diamond_hoe.json | 2 +- .../minecraft/diamond_pickaxe.json | 2 +- .../minecraft/diamond_shovel.json | 2 +- .../minecraft/diamond_sword.json | 2 +- .../recipes/computercraft/wired_modem.json | 2 +- .../computercraft/wired_modem_full_from.json | 2 +- .../computercraft/wired_modem_full_to.json | 2 +- .../wireless_modem_advanced.json | 2 +- .../computercraft/wireless_modem_normal.json | 2 +- .../loot_tables/blocks/computer_advanced.json | 2 +- .../loot_tables/blocks/computer_command.json | 2 +- .../loot_tables/blocks/computer_normal.json | 2 +- .../loot_tables/blocks/disk_drive.json | 2 +- .../loot_tables/blocks/monitor_advanced.json | 2 +- .../loot_tables/blocks/monitor_normal.json | 2 +- .../loot_tables/blocks/printer.json | 2 +- .../loot_tables/blocks/speaker.json | 2 +- .../loot_tables/blocks/turtle_advanced.json | 2 +- .../loot_tables/blocks/turtle_normal.json | 2 +- .../loot_tables/blocks/wired_modem_full.json | 2 +- .../blocks/wireless_modem_advanced.json | 2 +- .../blocks/wireless_modem_normal.json | 2 +- .../loot_tables/treasure_disk.json | 2 +- .../computercraft/lua/rom/autorun/.ignoreme | 2 +- .../computercraft/lua/rom/help/whatsnew.txt | 2 +- .../GopherAtl/battleship/battleship.lua | 875 ------ .../treasure/GravityScore/LuaIDE/luaide.lua | 2212 --------------- .../lua/treasure/JTK/maze3d/maze2d.lua | 327 --- .../lua/treasure/JTK/maze3d/maze3d.lua | 614 ---- .../lua/treasure/Lyqyd/nsh/framebuffer.lua | 159 -- .../lua/treasure/Lyqyd/nsh/get.lua | 26 - .../lua/treasure/Lyqyd/nsh/nsh.lua | 721 ----- .../lua/treasure/Lyqyd/nsh/put.lua | 35 - .../TheOriginalBIT/tictactoe/tictactoe.lua | 444 --- .../dan200/alongtimeago/alongtimeago.lua | 47 - .../deprecated/GopherAtl/talk/talk.lua | 1 - .../fredthead/protector/protector.lua | 1311 --------- .../nitrogenfingers/goldrunner/goldrunner.lua | 1314 --------- .../goldrunner/levels/01_welcome | 18 - .../goldrunner/levels/02_coalmine | 18 - .../goldrunner/levels/03_seeker | 18 - .../goldrunner/levels/04_fortress | 18 - .../goldrunner/levels/05_caged | 18 - .../goldrunner/levels/06_flowers | 18 - .../goldrunner/levels/07_pyramid | 18 - .../goldrunner/levels/08_cavein | 18 - .../goldrunner/levels/09_skyislands | 18 - .../goldrunner/levels/10_convert | 16 - .../nitrogenfingers/npaintpro/3dprint.lua | 119 - .../nitrogenfingers/npaintpro/gameutils.lua | 615 ---- .../nitrogenfingers/npaintpro/npaintpro.lua | 2517 ----------------- .../treasure/vilsol/gameoflife/gameoflife.lua | 178 -- .../computercraft/speaker.json | 2 +- .../wireless_modem_advanced.json | 2 +- .../computercraft/wireless_modem_normal.json | 2 +- .../minecraft/crafting_table.json | 2 +- .../minecraft/diamond_axe.json | 2 +- .../minecraft/diamond_hoe.json | 2 +- .../minecraft/diamond_pickaxe.json | 2 +- .../minecraft/diamond_shovel.json | 2 +- .../minecraft/diamond_sword.json | 2 +- .../pocket_normal/computercraft/speaker.json | 2 +- .../wireless_modem_advanced.json | 2 +- .../computercraft/wireless_modem_normal.json | 2 +- .../minecraft/crafting_table.json | 2 +- .../pocket_normal/minecraft/diamond_axe.json | 2 +- .../pocket_normal/minecraft/diamond_hoe.json | 2 +- .../minecraft/diamond_pickaxe.json | 2 +- .../minecraft/diamond_shovel.json | 2 +- .../minecraft/diamond_sword.json | 2 +- .../computercraft/speaker.json | 2 +- .../wireless_modem_advanced.json | 2 +- .../computercraft/wireless_modem_normal.json | 2 +- .../minecraft/crafting_table.json | 2 +- .../minecraft/diamond_axe.json | 2 +- .../minecraft/diamond_hoe.json | 2 +- .../minecraft/diamond_pickaxe.json | 2 +- .../minecraft/diamond_shovel.json | 2 +- .../minecraft/diamond_sword.json | 2 +- .../minecraft/netherite_pickaxe.json | 2 +- .../turtle_normal/computercraft/speaker.json | 2 +- .../wireless_modem_advanced.json | 2 +- .../computercraft/wireless_modem_normal.json | 2 +- .../minecraft/crafting_table.json | 2 +- .../turtle_normal/minecraft/diamond_axe.json | 2 +- .../turtle_normal/minecraft/diamond_hoe.json | 2 +- .../minecraft/diamond_pickaxe.json | 2 +- .../minecraft/diamond_shovel.json | 2 +- .../minecraft/diamond_sword.json | 2 +- .../minecraft/netherite_pickaxe.json | 2 +- .../recipes/wired_modem_full_from.json | 2 +- .../recipes/wired_modem_full_to.json | 2 +- .../computercraft/tags/items/computer.json | 2 +- .../computercraft/tags/items/monitor.json | 2 +- .../data/computercraft/tags/items/turtle.json | 2 +- .../computercraft/tags/items/wired_modem.json | 2 +- .../minecraft/tags/items/piglin_loved.json | 2 +- tools/disk_recipe.json | 10 - tools/language.lua | 120 - tools/language.py | 43 + tools/parse-reports.py | 114 + tools/pocket_upgrade_advancement.json | 22 - tools/pocket_upgrade_recipe.json | 13 - tools/recipes.lua | 136 - tools/turtle_upgrade_advancement.json | 22 - tools/turtle_upgrade_recipe.json | 12 - 180 files changed, 353 insertions(+), 12220 deletions(-) delete mode 100644 src/main/resources/data/computercraft/lua/treasure/GopherAtl/battleship/battleship.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/GravityScore/LuaIDE/luaide.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/JTK/maze3d/maze2d.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/JTK/maze3d/maze3d.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/Lyqyd/nsh/framebuffer.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/Lyqyd/nsh/get.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/Lyqyd/nsh/nsh.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/Lyqyd/nsh/put.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/TheOriginalBIT/tictactoe/tictactoe.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/dan200/alongtimeago/alongtimeago.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/deprecated/GopherAtl/talk/talk.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/fredthead/protector/protector.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/goldrunner/goldrunner.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/goldrunner/levels/01_welcome delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/goldrunner/levels/02_coalmine delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/goldrunner/levels/03_seeker delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/goldrunner/levels/04_fortress delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/goldrunner/levels/05_caged delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/goldrunner/levels/06_flowers delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/goldrunner/levels/07_pyramid delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/goldrunner/levels/08_cavein delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/goldrunner/levels/09_skyislands delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/goldrunner/levels/10_convert delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/npaintpro/3dprint.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/npaintpro/gameutils.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/nitrogenfingers/npaintpro/npaintpro.lua delete mode 100644 src/main/resources/data/computercraft/lua/treasure/vilsol/gameoflife/gameoflife.lua delete mode 100644 tools/disk_recipe.json delete mode 100644 tools/language.lua create mode 100755 tools/language.py create mode 100755 tools/parse-reports.py delete mode 100644 tools/pocket_upgrade_advancement.json delete mode 100644 tools/pocket_upgrade_recipe.json delete mode 100644 tools/recipes.lua delete mode 100644 tools/turtle_upgrade_advancement.json delete mode 100644 tools/turtle_upgrade_recipe.json diff --git a/.github/ISSUE_TEMPLATE/peripheral_shoutout.md b/.github/ISSUE_TEMPLATE/peripheral_shoutout.md index e2aa86bb7..2d2c9c139 100644 --- a/.github/ISSUE_TEMPLATE/peripheral_shoutout.md +++ b/.github/ISSUE_TEMPLATE/peripheral_shoutout.md @@ -9,4 +9,4 @@ labels: peripheralShoutout - Link to the mod - Mod Name - Basic description of the mod - - Link to CC:R Peripheral Documentation for the mod \ No newline at end of file + - Link to CC:R Peripheral Documentation for the mod diff --git a/.github/workflows/main-ci.yml b/.github/workflows/main-ci.yml index a144e94db..c1103486c 100644 --- a/.github/workflows/main-ci.yml +++ b/.github/workflows/main-ci.yml @@ -9,6 +9,9 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Checkout submodules + run: git submodule update --init --recursive + - name: Set up Java 8 uses: actions/setup-java@v1 diff --git a/.gitignore b/.gitignore index 015269e79..4efc71fe5 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,4 @@ .idea .gradle *.DS_Store -.project \ No newline at end of file +.project diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index a42c8bdb1..7a0de01ca 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -16,4 +16,4 @@ RUN sudo apt-get -q update && \ sudo apt install -yq openjdk-8-jdk openjdk-16-jdk # This is so that you can use java 8 until such a time as you switch to java 16 -RUN sudo update-java-alternatives --set java-1.8.0-openjdk-amd64 \ No newline at end of file +RUN sudo update-java-alternatives --set java-1.8.0-openjdk-amd64 diff --git a/.gitpod.yml b/.gitpod.yml index 0e926b2a1..d773abea4 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -15,4 +15,4 @@ vscode: tasks: - - init: ./gradlew \ No newline at end of file + - init: ./gradlew diff --git a/.vscode/settings.json b/.vscode/settings.json index f1a1f60c9..1ffa4a6e4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,7 +9,7 @@ // Custom Hidden Files "**/.bin": true, "**/.editorconfig": true, - }, - + }, + "java.configuration.updateBuildConfiguration": "automatic" -} \ No newline at end of file +} diff --git a/LICENSE b/LICENSE index 65a70f5ae..cf30d77a6 100644 --- a/LICENSE +++ b/LICENSE @@ -19,14 +19,14 @@ Mod: The mod code designated by the present license, in source form, binary form, as obtained standalone, as part of a wider distribution or resulting from the compilation of the original or modified sources. -Dependency: Code required for the mod to work properly. This includes +Dependency: Code required for the mod to work properly. This includes dependencies required to compile the code as well as any file or modification that is explicitly or implicitly required for the mod to be working. 1. Scope -------- -The present license is granted to any user of the mod. As a prerequisite, +The present license is granted to any user of the mod. As a prerequisite, a user must own a legally acquired copy of Minecraft 2. Liability @@ -41,13 +41,13 @@ or misuse of this mod fall on the user. 3. Play rights -------------- -The user is allowed to install this mod on a Minecraft client or server and to play +The user is allowed to install this mod on a Minecraft client or server and to play without restriction. 4. Modification rights ---------------------- -The user has the right to decompile the source code, look at either the +The user has the right to decompile the source code, look at either the decompiled version or the original source code, and to modify it. 5. Distribution of original or modified copy rights @@ -61,10 +61,10 @@ include: - patch to its source or binary files - any copy of a portion of its binary source files -The user is allowed to redistribute this mod partially, in totality, or +The user is allowed to redistribute this mod partially, in totality, or included in a distribution. -When distributing binary files, the user must provide means to obtain its +When distributing binary files, the user must provide means to obtain its entire set of sources or modified sources at no cost. All distributions of this mod must remain licensed under the CCPL. @@ -92,7 +92,7 @@ must be made available at no cost and remain licensed under the CCPL. --------------- If you choose to contribute code or assets to be included in this mod, you -agree that, if added to to the main repository at +agree that, if added to to the main repository at https://github.com/dan200/ComputerCraft, your contributions will be covered by this license, and that Daniel Ratcliffe will retain the right to re-license the mod, including your contributions, in part or in whole, under other licenses. diff --git a/README.md b/README.md index d13e01b6a..0041dfb86 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Any contribution is welcome, be that using the mod, reporting bugs or contributi > Comments, optional but useful if you had to do something differently than in CC:T outside of [Fabric](https://fabricmc.net/)/[Forge](https://mcforge.readthedocs.io/en/1.16.x/) differences > > \`\`\` - > + > >commitID > > commit title @@ -38,29 +38,29 @@ Any contribution is welcome, be that using the mod, reporting bugs or contributi > commit desc > > \`\`\` -2) Follow the [Fabric](https://fabricmc.net/) programming guidelines as close as possible. This means you have to use [`loom`](https://fabricmc.net/wiki/tutorial:mappings) mappings, +2) Follow the [Fabric](https://fabricmc.net/) programming guidelines as close as possible. This means you have to use [`loom`](https://fabricmc.net/wiki/tutorial:mappings) mappings, 3) You cannot intentionally implement bugs and security vulnerabilities 4) Unless the commit is a ["patchwork"](https://github.com/Merith-TK/cc-restitched/blob/fabric/patchwork.md) compliant commit, (IE: taken from CC:T), the lua code is off limits ## Bleeding Edge Builds Bleeding edge builds can be found [here](https://github.com/Merith-TK/cc-restitched/actions) at Github Actions. ## Community -If you need help getting started with CC: Tweaked, want to show off your latest project, or just want to chat about ComputerCraft, here is the [Forum](https://forums.computercraft.cc/) and the [Discord](https://discord.gg/H2UyJXe) +If you need help getting started with CC: Tweaked, want to show off your latest project, or just want to chat about ComputerCraft, here is the [Forum](https://forums.computercraft.cc/) and the [Discord](https://discord.gg/H2UyJXe) ## Known Issues Main Known issue * Mods that add blocks that can be used as peripherals for CC:T On forge, don't work with CC:R. * This is because of the differences between forge and fabric, and that mod devs, to my knowledge have not agreed upon a standard method in which to implement cross compatibility between mods, -* [Fixed (d10f297c): please report if bug persists]
~~Storage Peripherals throw a java "StackOverflowError" when using `pushItems()`,~~ - * ~~Work around, you are probably using `pushItems(chest, 1)` or similar. please use `pushItems(chest, 1, nil, 1)`.~~ +* [Fixed (d10f297c): please report if bug persists]
~~Storage Peripherals throw a java "StackOverflowError" when using `pushItems()`,~~ + * ~~Work around, you are probably using `pushItems(chest, 1)` or similar. please use `pushItems(chest, 1, nil, 1)`.~~ * Computers will not run built in commands, saying "File not found" * This is a know bug, dont know what causes it, but just restart the computer (`ctrl+r` for one second) and it will work again * Occurs when server runs `/reload` or a datapack is updated - + ## Perpherals Unfortunately, unlike the original CC:Tweaked project, CC:Restitched, does not have any actual peripheral mods, currently the only one we have is an example for mod devs to get started with making/adding the peripheral API to their mods! If your a mod dev made a mod with CC:R peripheral support, OR if your a player who found a mod with CC:R support, please open an [issue here](https://github.com/Merith-TK/cc-restitched/issues/new?assignees=&labels=peripheralShoutout&template=peripheral_shoutout.md) to let us know so we can add it to the list! * ![icon](https://raw.githubusercontent.com/Toad-Dev/cc-peripheral-test/master/src/main/resources/assets/cc_test/textures/block/test_peripheral.png) [CC Peripheral Test](https://github.com/Toad-Dev/cc-peripheral-test) - * This is an example mod for how to make peripherals that work as a block, or as a turtle upgrade! \ No newline at end of file + * This is an example mod for how to make peripherals that work as a block, or as a turtle upgrade! diff --git a/codeInspectionSettings.xml b/codeInspectionSettings.xml index 2862d72b4..57b8ed0d7 100644 --- a/codeInspectionSettings.xml +++ b/codeInspectionSettings.xml @@ -2488,4 +2488,4 @@ - \ No newline at end of file + diff --git a/codeStyleSettings.xml b/codeStyleSettings.xml index b4c9573fd..9a1e0f1d4 100644 --- a/codeStyleSettings.xml +++ b/codeStyleSettings.xml @@ -58,4 +58,4 @@