Everything posted by awesomedude3595
-
How to make a custom texture for wearing armor
I have made a custom armor piece and have given it a texture for when you hold it. I have also made a custom armor material but I dont know how to make it so that when you where the armor you see a custom texture.
-
How to give a block multiple textures in 1.16.5
public class ModBlocks { public static final RegistryObject<Block> crafting6x6 = register("crafting6x6", () -> new CraftingTableBlock(AbstractBlock.Properties.of(Material.WOOD).sound(SoundType.WOOD).harvestTool(ToolType.AXE).harvestLevel(0))); static void register() {} private static <T extends Block> RegistryObject<T> registerNoItem(String name, Supplier<T> block) { return Registration.Blocks.register(name, block); } private static <T extends Block> RegistryObject<T> register(String name, Supplier<T> block) { RegistryObject<T> ret = registerNoItem(name, block); Registration.Items.register(name, () -> new BlockItem(ret.get(),new Item.Properties().tab(ItemGroup.TAB_BUILDING_BLOCKS))); return ret; } } public class ModBlockModelProvider extends BlockModelProvider { public ModBlockModelProvider(DataGenerator generator, ExistingFileHelper existingFileHelper) { super(generator, DesignableArmor.MOD_ID, existingFileHelper); } @Override protected void registerModels() { ModelFile crafting6x6 = orientableWithBottom("crafting6x6", modLoc("crafting6x6_side"), modLoc("crafting6x6_side"), modLoc("crafting6x6_bottom"), modLoc("crafting6x6_top")); } } public class ModBlockStateProvider extends BlockStateProvider { public ModBlockStateProvider(DataGenerator gen, ExistingFileHelper exFileHelper) { super(gen, DesignableArmor.MOD_ID, exFileHelper); } @Override protected void registerStatesAndModels() { } } I believe these are the files I need to use to texture my block I'm just not certain how to use them
-
How to give a block multiple textures in 1.16.5
also how do I send code properly
-
How to give a block multiple textures in 1.16.5
do i put this in the registerStatesAndModels if so how?
-
How to give a block multiple textures in 1.16.5
public class ModModelProvider extends BlockModelProvider { public ModModelProvider(DataGenerator generator, ExistingFileHelper existingFileHelper) { super(generator, DesignableArmor.MOD_ID, existingFileHelper); } @Override protected void registerModels() { orientableWithBottom("crafting6x6", modLoc("crafting6x6_side"), modLoc("crafting6x6_side"), modLoc("crafting6x6_bottom"), modLoc("crafting6x6_top")); } } I added this is this correct if so how do I register it so it actually loads
-
How to give a block multiple textures in 1.16.5
ill try that
-
How to give a block multiple textures in 1.16.5
Is there a way I can use a data generator to make the file.
-
How to give a block multiple textures in 1.16.5
I have been trying to make a custom crafting table I have everything working except the texture. This I don't even know where to start with I have made a top and side png file for my crafting table but don't know how to apply these in the 1.16.5 mdk.