From 1b67673b92a96dc0eac37ecb7e3681a46c01672f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 22 Mar 2024 17:41:04 -0400 Subject: [PATCH] removed tools & added autobuild workflow --- .forgejo/workflows/zip.yaml | 21 +++++++++++++++++++ README.md | 6 +++--- .../nonetherite/functions/tick.mcfunction | 18 +--------------- 3 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 .forgejo/workflows/zip.yaml diff --git a/.forgejo/workflows/zip.yaml b/.forgejo/workflows/zip.yaml new file mode 100644 index 0000000..849acf2 --- /dev/null +++ b/.forgejo/workflows/zip.yaml @@ -0,0 +1,21 @@ +name: Upload .zip file +on: [push] + +jobs: + Upload .zip file: + runs-on: docker + container: catthehacker/ubuntu:act-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Upload the .zip archive + uses: actions/upload-artifact@v3 + with: + name: NoNetheriteArmor + path: | + data + pack.mcmeta + pack.png + LICENSE + README.md diff --git a/README.md b/README.md index 2feab27..ef2c4e9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# No Netherite +# No Netherite Armor -Disables all netherite tools and armor +Disables all netherite armor -refunds the costs \ No newline at end of file +refunds the costs diff --git a/noNetherite/data/nonetherite/functions/tick.mcfunction b/noNetherite/data/nonetherite/functions/tick.mcfunction index 20328ae..808b9f2 100644 --- a/noNetherite/data/nonetherite/functions/tick.mcfunction +++ b/noNetherite/data/nonetherite/functions/tick.mcfunction @@ -3,31 +3,15 @@ execute as @a[nbt={Inventory:[{id:"minecraft:netherite_helmet"}]}] run give @s d execute as @a[nbt={Inventory:[{id:"minecraft:netherite_chestplate"}]}] run give @s diamond_chestplate 1 execute as @a[nbt={Inventory:[{id:"minecraft:netherite_leggings"}]}] run give @s diamond_leggings 1 execute as @a[nbt={Inventory:[{id:"minecraft:netherite_boots"}]}] run give @s diamond_boots 1 -#tools -#refund tool -execute as @a[nbt={Inventory:[{id:"minecraft:netherite_sword"}]}] run give @s diamond_sword 1 -execute as @a[nbt={Inventory:[{id:"minecraft:netherite_pickaxe"}]}] run give @s diamond_pickaxe 1 -execute as @a[nbt={Inventory:[{id:"minecraft:netherite_axe"}]}] run give @s diamond_axe 1 -execute as @a[nbt={Inventory:[{id:"minecraft:netherite_shovel"}]}] run give @s diamond_shovel 1 -execute as @a[nbt={Inventory:[{id:"minecraft:netherite_hoe"}]}] run give @s diamond_hoe 1 + #refund netherite ingot execute as @a[nbt={Inventory:[{id:"minecraft:netherite_helmet"}]}] run give @s netherite_ingot 1 execute as @a[nbt={Inventory:[{id:"minecraft:netherite_chestplate"}]}] run give @s netherite_ingot 1 execute as @a[nbt={Inventory:[{id:"minecraft:netherite_leggings"}]}] run give @s netherite_ingot 1 execute as @a[nbt={Inventory:[{id:"minecraft:netherite_boots"}]}] run give @s netherite_ingot 1 -execute as @a[nbt={Inventory:[{id:"minecraft:netherite_sword"}]}] run give @s netherite_ingot 1 -execute as @a[nbt={Inventory:[{id:"minecraft:netherite_pickaxe"}]}] run give @s netherite_ingot 1 -execute as @a[nbt={Inventory:[{id:"minecraft:netherite_axe"}]}] run give @s netherite_ingot 1 -execute as @a[nbt={Inventory:[{id:"minecraft:netherite_shovel"}]}] run give @s netherite_ingot 1 -execute as @a[nbt={Inventory:[{id:"minecraft:netherite_hoe"}]}] run give @s netherite_ingot 1 #clear everything clear @a[nbt={Inventory:[{id:"minecraft:netherite_helmet"}]}] netherite_helmet 1 clear @a[nbt={Inventory:[{id:"minecraft:netherite_chestplate"}]}] netherite_chestplate 1 clear @a[nbt={Inventory:[{id:"minecraft:netherite_leggings"}]}] netherite_leggings 1 clear @a[nbt={Inventory:[{id:"minecraft:netherite_boots"}]}] netherite_boots 1 -clear @a[nbt={Inventory:[{id:"minecraft:netherite_sword"}]}] netherite_sword 1 -clear @a[nbt={Inventory:[{id:"minecraft:netherite_pickaxe"}]}] netherite_pickaxe 1 -clear @a[nbt={Inventory:[{id:"minecraft:netherite_axe"}]}] netherite_axe 1 -clear @a[nbt={Inventory:[{id:"minecraft:netherite_shovel"}]}] netherite_shovel 1 -clear @a[nbt={Inventory:[{id:"minecraft:netherite_hoe"}]}] netherite_hoe 1 \ No newline at end of file