Jump to content

Okmeis

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by Okmeis

  1. Hello there ^^/

     

    I created a prototype for my tophat, but I want that it has the dye ability of leather armor, so that I can create 256*256*256 different color versions of it.

    What do I have to do to realize that?

     

    (I don't know what I tried a week ago, but there are already unused methods (getColor, removeColor and setColor) in my ColorableArmorItem object.)

     

     

    Greeting,

     

    Okmeis ^^/

  2. Try something like this in your ArmorItem Class:
     

     @SuppressWarnings("unchecked")
        @Nullable
        @Override
        public <A extends BipedModel<?>> A getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType armorSlot, A _default) {
                    YourModelObject model = new YourModelObject();
                    model.bipedHeadwear.showModel = armorSlot == EquipmentSlotType.HEAD;
    
                    model.isChild = _default.isChild;
                    model.isSneak = _default.isSneak;
                    model.isSitting = _default.isSitting;
                    model.rightArmPose = _default.rightArmPose;
                    model.leftArmPose = _default.leftArmPose;
    
                    return (A) model;
        }
    
        @Nullable
        @Override
        public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) {
            return "yourmodid:textures/models/armor/yourtexturename.png";
        }

     

    Does it work?

  3. I guess the most changes are Namechanges anyway (Class and function name changes).

    For example

    - ModelRenderer renamed to RendererModel

    - Methodes like haskey (in some color method or something) to contains or something, etc.

    - There are maybe one or two package changes as well, but there aren't that much of changes.

     

     

  4. Can you post your log?

    And what happens if you're using a way simpler model like just a cube?

    Also, how did you implement the wearing?

    Maybe the problem is in your solution?

    Or your hat model json isn't that much compatible(like json says +5 to the left and the javacode understands +5 to the left etc.) with the (armor (BipedModel?) ) modeling functions.

  5. Hello there ^^/

     

    I didn't mod for, uhm, I think two or three years now.

    When I tried to write a simple 1.14.3 Mod (which should just add an item to the game) this week, the following appeared:lollll.PNG.faa563c9340394ffd7a321717f54b405.PNG

     

    So I opened the log and found this:

    "[04Jul2019 22:25:56.748] [Server-Worker-1/WARN] [net.minecraft.client.renderer.model.ModelBakery/]: Unable to load model: 'okismod:coin#inventory' referenced from: okismod:coin#inventory: java.io.FileNotFoundException: okismod:models/item/coin.json"

     

    But

    \Desktop\Mods\src\main\resources\assets\okismod\models\item\coin.json

    {
        "parent": "item/generated",
        "textures": {
            "layer0": "okismod:items/coin"
        }
    }

    and/or (i tried both)

    {
        "parent": "item/generated",
        "textures": {
            "layer0": "okismod:item/coin"
        }
    }

     

    \Desktop\Mods\src\main\resources\assets\okismod\textures\items and/or \Desktop\Mods\src\main\resources\assets\okismod\textures\item\coin.png (16x16 pixels) (i tried both)

     

    \Desktop\Mods\src\main\resources\assets\okismod\lang.en_us.json

    {
        "item.okismod.coin": "Golden Coin"
    }

    do exist.

     

    The result of my coin ingame is:

    - missing texture (purple/black block)

    - missing name

     

    So, uhm, does anyone know what I did wrong?

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.