Skip to content

Commit

Permalink
Fix some layout issues and typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
IMB11 committed Jun 18, 2024
1 parent d9ca903 commit 2bd53d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion develop/items/custom-armor.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ All armor items - like tools - have an armor material.

The armor material tells the game what protection and durability the armor item should have depending on the slot.

You'll need to create a class that inherits `ArmorMaterial` - and add the following fields.
You'll need to create a class that inherits `ArmorMaterial`, like so:

@[code transcludeWith=:::1](@/reference/latest/src/main/java/com/example/docs/item/armor/GuiditeArmorMaterial.java)

Expand Down
4 changes: 3 additions & 1 deletion develop/items/custom-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ Remember to add them to an item group if you want to access them from the creati

@[code transcludeWith=:::8](@/reference/latest/src/main/java/com/example/docs/item/ModItems.java)

You will also have to add a texture, item translation and item model. However, for the item model, you'll want to use the `item/handheld` model as your parent. For example, I will be using the following model and texture for the "Guidite Sword" item:
You will also have to add a texture, item translation and item model. However, for the item model, you'll want to use the `item/handheld` model as your parent.

For this example, I will be using the following model and texture for the "Guidite Sword" item:

@[code](@/reference/latest/src/main/resources/assets/fabric-docs-reference/models/item/guidite_sword.json)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

// :::1
public class GuiditeArmorMaterial implements ArmorMaterial {
// ...
//:::1
// :::_10
public static final GuiditeArmorMaterial INSTANCE = new GuiditeArmorMaterial();
Expand Down

0 comments on commit 2bd53d7

Please sign in to comment.