Posted February 16, 20205 yr Hi there, I created a custom sword. It seems to work fine, behaves properly in term of its attack power, recipe. But when I look at it in Third Person view from the front, I notice that it is being held weirdly (screenshot attached). When I hold a regular diamond sword, it is being held properly (also screenshot attached). package com.ayclogic.aycfirstmod.item; import com.mycompany.firstmod.init.ModItemGroup; import net.minecraft.item.IItemTier; import net.minecraft.item.Item; import net.minecraft.item.SwordItem; public class CustomSword extends SwordItem { public CustomSword() { super(CustomTier.MATERIAL, 99, -2.0F, new Item.Properties().group(ModItemGroup.MOD_ITEM_GROUP)); } } any idea how to fix this? Diamond Sword Custom Sword
February 16, 20205 yr Hello, Here is the model file of diamond sword { "parent": "item/handheld", "textures": { "layer0": "item/diamond_sword" } } So you need to change the "parent" value to "item/handheld" like any sword. Bye. Edited February 16, 20205 yr by Zeide
February 16, 20205 yr @Zeide, you have a good idea, but if this dont work then @gamas you should make a manual model with Blockbench and export it as json model, else if you want the model of the sword then the first idea should work. New in Modding? == Still learning!
February 16, 20205 yr Author Thank you @Zeide, that was it. My model file was like this before { "parent": "item/generated", "textures": { "layer0": "firstmod:item/invincible_sword" } } after I changed the "parent":"item/handheld", my custom sword looks good now. Below is the screenshot Really appreciate your help
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.