Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.webs.legouni_craft.lucmod.models;
- import net.minecraft.client.renderer.block.model.ModelResourceLocation;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemStack;
- import net.minecraft.util.ResourceLocation;
- public class TestDiamondSwordModel extends CustomItemModel {
- public TestDiamondSwordModel(Item item) {
- super(item);
- }
- @Override
- public ModelResourceLocation getModelLocation(ItemStack stack) {
- return new ModelResourceLocation("apple", "inventory");
- }
- @Override
- protected ResourceLocation[] variants() {
- return new ResourceLocation[] {
- new ResourceLocation("apple"),
- new ResourceLocation("diamond_sword")
- };
- }
- }
Add Comment
Please, Sign In to add comment