User Tools

Site Tools


tutorial:shield

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tutorial:shield [2025/06/21 18:39] – updated to 1.21.4 cringestar_boitutorial:shield [2025/11/13 23:28] (current) – Updated to 1.21.5 and added and added a section on the conditional model format needed to make the shield work bouncingelf10
Line 1: Line 1:
-====== Making a Custom Shield in Minecraft [1.19-1.21.4] ======+====== Making a Custom Shield in Minecraft [1.19-1.21.5] ======
 :!: The tutorial depends on third-party libraries. :!: The tutorial depends on third-party libraries.
  
Line 16: Line 16:
 **gradle.properties** **gradle.properties**
 <file properties gradle.properties> <file properties gradle.properties>
-fabric_shield_lib_version=1.8.0-1.21.4 +fabric_shield_lib_version=1.8.3-1.21.5 
-mod_menu_version=13.0.0 +mod_menu_version=14.0.0 
-midnightlib_version=1.6.6-fabric+midnightlib_version=1.7.3+1.21.4-fabric
 fabricasm_version=2.3 fabricasm_version=2.3
 </file> </file>
 +
 +Find the corresponding mod versions for your Minecraft version
  
 **build.gradle** (under ''dependencies'' block)  **build.gradle** (under ''dependencies'' block) 
Line 31: Line 33:
  
 At the time of writing, these are the most up-to-date FabricShieldLib versions: At the time of writing, these are the most up-to-date FabricShieldLib versions:
 +  * **1.21.5** (''1.8.3-1.21.5'')
   * **1.21.4** (''1.8.0-1.21.4'')   * **1.21.4** (''1.8.0-1.21.4'')
   * **1.21.2** - **1.21.3** (''1.8.0-pre1-1.21.3'')   * **1.21.2** - **1.21.3** (''1.8.0-pre1-1.21.3'')
Line 109: Line 112:
   "textures":{   "textures":{
     "shield":"tutorial:item/netherite_shield"     "shield":"tutorial:item/netherite_shield"
 +  }
 +}
 +</file>
 +
 +Assuming you've made the Item correctly, you should've also made an Item Model Description. We need to add the conditional model format, so your ''item/netherite_shield.json'' should look like this:
 +<file javascript resources/assets/tutorial/item/netherite_shield.json>
 +{
 +  "model": {
 +    "type": "minecraft:condition",
 +    "property": "minecraft:using_item",
 +    "on_false": {
 +      "type": "minecraft:model",
 +      "model": "collision-point:item/netherite_shield"
 +    },
 +    "on_true": {
 +      "type": "minecraft:model",
 +      "model": "collision-point:item/netherite_shield_blocking"
 +    }
   }   }
 } }
tutorial/shield.txt · Last modified: 2025/11/13 23:28 by bouncingelf10