Improved way of rendering the blocking animation

- Now no longer depends on the integrated resourcepack
- Improved compatibility with resourcepacks and mods (closes #17)
- Big thanks to @lowercasebtw for contributing this part of the code
- Fixed #13
This commit is contained in:
Martin Prokoph
2024-06-10 15:39:43 +02:00
parent 68dade9453
commit 95454d1c33
32 changed files with 25 additions and 305 deletions

View File

@@ -7,7 +7,8 @@
"description": "Adds sword blocking to new versions, you just need a shield in your offhand!",
"authors": [
"Motschen",
"TeamMidnightDust"
"TeamMidnightDust",
"lowercasebtw"
],
"contact": {
"homepage": "https://www.midnightdust.eu/",

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/diamond_axe"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/diamond_axe_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/diamond_axe"
}
}

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/diamond_sword"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/diamond_sword_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/diamond_sword"
}
}

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/golden_axe"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/golden_axe_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/golden_axe"
}
}

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/golden_sword"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/golden_sword_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/golden_sword"
}
}

View File

@@ -1,16 +0,0 @@
{
"credit": "https://github.com/FoundationGames/Parry/blob/master/src/main/resources/assets/minecraft/models/item/handheld_parry.json",
"parent": "item/handheld",
"display": {
"firstperson_righthand": {
"rotation": [ 171, 13, 165 ],
"translation": [ -2.8, -0.2, -5 ],
"scale": [ 1, 1, 1 ]
},
"firstperson_lefthand": {
"rotation": [ 171, 13, 75 ],
"translation": [ -2.8, -0.2, -5 ],
"scale": [ 1, 1, 1 ]
}
}
}

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/iron_axe"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/iron_axe_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/iron_axe"
}
}

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/iron_sword"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/iron_sword_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/iron_sword"
}
}

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/netherite_axe"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/netherite_axe_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/netherite_axe"
}
}

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/netherite_sword"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/netherite_sword_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/netherite_sword"
}
}

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/stone_axe"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/stone_axe_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/stone_axe"
}
}

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/stone_sword"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/stone_sword_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/stone_sword"
}
}

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/wooden_axe"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/wooden_axe_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/wooden_axe"
}
}

View File

@@ -1,15 +0,0 @@
{
"parent": "minecraft:item/handheld",
"textures": {
"layer0": "minecraft:item/wooden_sword"
},
"overrides": [
{
"predicate": {
"blocking": 1
},
"model": "minecraft:item/wooden_sword_blocking"
}
]
}

View File

@@ -1,6 +0,0 @@
{
"parent": "minecraft:item/handheld_blocking",
"textures": {
"layer0": "minecraft:item/wooden_sword"
}
}

View File

@@ -1,11 +0,0 @@
{
"pack": {
"pack_format": 12,
"_comment_": "'supported_formats' only works for 1.20.2+",
"supported_formats": {
"min_inclusive": 12,
"max_inclusive": 100
},
"description": "§2Provides the required predicates for Sword Blocking"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB