removed tools & added autobuild workflow
All checks were successful
Upload .zip file / Upload .zip file (push) Successful in 4s

This commit is contained in:
Seaswimmer 2024-03-22 17:41:04 -04:00
parent 6cede96bd4
commit 1b67673b92
Signed by: cswimr
GPG key ID: B8953EC01E5C4063
3 changed files with 25 additions and 20 deletions

View file

@ -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

View file

@ -1,5 +1,5 @@
# No Netherite # No Netherite Armor
Disables all netherite tools and armor Disables all netherite armor
refunds the costs refunds the costs

View file

@ -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_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_leggings"}]}] run give @s diamond_leggings 1
execute as @a[nbt={Inventory:[{id:"minecraft:netherite_boots"}]}] run give @s diamond_boots 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 #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_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_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_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_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 everything
clear @a[nbt={Inventory:[{id:"minecraft:netherite_helmet"}]}] netherite_helmet 1 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_chestplate"}]}] netherite_chestplate 1
clear @a[nbt={Inventory:[{id:"minecraft:netherite_leggings"}]}] netherite_leggings 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_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