Jump to content

[1.9.4] Item models for items with subtypes


DARKHAWX

Recommended Posts

So, very stupid question, but I've completely forgot how to properly give items subtypes and how to setup their model files.

 

I've got

this.setHasSubtypes(true);

and

public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems)

added onto my item file, but I think I'm registering my items and their item models incorrectly. It's creating the different items, but it's not assigning them unique names based on their state...

 

Here is the item file I have. It's a sandcastle mould with a propertyenum to store what type of mould it is:

package com.darkhawx.planck.main.items;

import com.darkhawx.planck.main.init.ModBlocks;
import net.minecraft.block.Block;
import net.minecraft.block.BlockSand;
import net.minecraft.block.properties.PropertyEnum;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.SoundEvents;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.util.IStringSerializable;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import java.util.List;

/**
* Created by Bradley Gray on 14/07/16.
*/
public class ItemSandcastleMould extends ItemBasic {

    public static final PropertyEnum MOULD = PropertyEnum.create("mouldtype", ItemSandcastleMould.EnumMouldType.class);

    public ItemSandcastleMould(String itemName) {
        super(itemName);
        this.maxStackSize = 1;
        this.setHasSubtypes(true);
    }

    public ActionResult<ItemStack> onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn, EnumHand hand) {
        RayTraceResult raytraceresult = this.rayTrace(worldIn, playerIn, true);

        if (raytraceresult == null) {
            return new ActionResult(EnumActionResult.PASS, itemStackIn);
        } else {
            BlockPos blockPos = raytraceresult.getBlockPos();
            Block block = worldIn.getBlockState(blockPos).getBlock();

            if (block instanceof BlockSand) {
                playerIn.playSound(SoundEvents.BLOCK_SAND_BREAK, 1.0F, 1.0F);
                worldIn.setBlockState(blockPos, ModBlocks.sandCastle.getDefaultState(), 3);
                return new ActionResult<>(EnumActionResult.SUCCESS, itemStackIn);
            }
        }

        return new ActionResult(EnumActionResult.FAIL, itemStackIn);
    }

    /**
     * returns a list of items with the same ID, but different meta (eg: dye returns 16 items)
     */
    @SideOnly(Side.CLIENT)
    public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems)
    {
        for (int i = 0; i < ItemSandcastleMould.EnumMouldType.VALUES.length; ++i)
        {
            subItems.add(new ItemStack(itemIn, 1, i));
        }
    }

    /**
     * EnumMouldType
     */
    public enum EnumMouldType implements IStringSerializable {
        CASTLE(0, "castle", "castle", new AxisAlignedBB(0.125D, 0.0D, 0.125D, 0.875D, 0.875D, 0.875D)),
        TOWER(1, "tower", "tower", new AxisAlignedBB(0.125D, 0.0D, 0.125D, 0.875D, 0.875D, 0.875D));

        public static final EnumMouldType[] VALUES = new EnumMouldType[values().length];

        private int meta;
        private String name;
        private AxisAlignedBB aabb;
        private String unlocalizedName;

        EnumMouldType(int meta, String name, String unlocalizedName, AxisAlignedBB aabb) {
            this.meta = meta;
            this.name = name;
            this.unlocalizedName = unlocalizedName;
            this.aabb = aabb;
        }

        public static EnumMouldType byMetadata(int meta)
        {
            if (meta < 0 || meta >= VALUES.length)
            {
                meta = 0;
            }

            return VALUES[meta];
        }

        static
        {
            for (EnumMouldType enumRT : values()) {
                VALUES[enumRT.getMetadata()] = enumRT;
            }
        }

        public AxisAlignedBB getAABB() {
            return this.aabb;
        }

        public String getUnlocalizedName()
        {
            return this.unlocalizedName;
        }

        @Override
        public String getName() {
            return name;
        }

        public int getMetadata() {
            return meta;
        }

        @Override
        public String toString() {
            return getName();
        }
    }
}

 

 

And here's how the item is being registered:

    public static Item sandcastleMould;


    public static void registerItems() {        sandcastleMould = registerItem(new ItemSandcastleMould(LibItems.SANDCASTLE_MOULD));

    }

    private static <O extends Item> O registerItem(O item) {
        GameRegistry.register(item);
        items.add(item);
        return item;
    }

 

 

And finally the model registering...

        // Register items with custom model names first
        for (ItemSandcastleMould.EnumMouldType mouldType : ItemSandcastleMould.EnumMouldType.VALUES) {
            registerItemModelForMeta(ModItems.sandcastleMould, mouldType.getMetadata(), mouldType.getName());
        }

    private void registerItemModelForMeta(Item item, int metadata, String variant) {
        registerItemModelForMeta(item, metadata, new ModelResourceLocation(item.getRegistryName(), variant));
    }

    private void registerItemModelForMeta(Item item, int metadata, ModelResourceLocation modelResourceLocation) {
        itemsRegistered.add(item);
        ModelLoader.setCustomModelResourceLocation(item, metadata, modelResourceLocation);
    }

 

 

What am I doing wrong here? I think I missed something stupid and simple. Let me know if I need to post more code.

 

No signature for you!

Link to comment
Share on other sites

You're registering each subtype as a variant of the item's registry name, so Minecraft will look for a blockstates file named with the item's registry name containing a variant for each of the subtypes. Is this what you want?

 

What's actually happening?

 

The FML log (logs/fml-client-latest.log) will contain any model loading errors, please post it.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

You're registering each subtype as a variant of the item's registry name, so Minecraft will look for a blockstates file named with the item's registry name containing a variant for each of the subtypes. Is this what you want?

 

What's actually happening?

 

The FML log (logs/fml-client-latest.log) will contain any model loading errors, please post it.

 

If I understand correctly then yes. However, all the items use the same name and texture, which I don't want.

 

There are no model missing/loading errors. (I even added the blockstate file to see if that did anything, nothing changed).

 

So what am I doing wrong here? I would like to have the item and its states work similar to how blockstate files work if possible, but I might be doing this wrong.

No signature for you!

Link to comment
Share on other sites

Post your FML log, blockstates file(s), model(s) and a screenshot of the directory structure containing these files.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

Okay:

 

FML Log:

 

"C:\Program Files\Java\jdk1.8.0_73\bin\java" -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 15.0.4\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_73\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_73\jre\lib\rt.jar;C:\Users\Bradley Gray\Documents\Modding\Planck 1.9\build\classes\production\Planck 1.9;C:\Users\Bradley Gray\.gradle\caches\minecraft\deobfedDeps\compileDummy.jar;C:\Users\Bradley Gray\.gradle\caches\minecraft\deobfedDeps\providedDummy.jar;C:\Users\Bradley Gray\.gradle\caches\minecraft\net\minecraftforge\forge\1.9.4-12.17.0.1954\start;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.google.code.findbugs\jsr305\3.0.1\f7be08ec23c21485b9b5a1cf1654c2ec8c58168d\jsr305-3.0.1.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.mojang\netty\1.6\4b75825a06139752bd800d9e29c5fd55b8b1b1e4\netty-1.6.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\oshi-project\oshi-core\1.1\9ddf7b048a8d701be231c0f4f95fd986198fd2d8\oshi-core-1.1.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna\3.4.0\803ff252fedbd395baffd43b37341dc4a150a554\jna-3.4.0.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\platform\3.4.0\e3f70017be8100d3d6923f50b3d2ee17714e9c13\platform-3.4.0.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.ibm.icu\icu4j-core-mojang\51.2\63d216a9311cca6be337c1e458e587f99d382b84\icu4j-core-mojang-51.2.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\net.sf.jopt-simple\jopt-simple\4.6\306816fb57cf94f108a43c95731b08934dcae15c\jopt-simple-4.6.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\io.netty\netty-all\4.0.23.Final\294104aaf1781d6a56a07d561e792c5d0c95f45\netty-all-4.0.23.Final.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.google.guava\guava\17.0\9c6ef172e8de35fd8d4d8783e4821e57cdef7445\guava-17.0.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-lang3\3.3.2\90a3822c38ec8c996e84c16a3477ef632cbc87a3\commons-lang3-3.3.2.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\commons-io\commons-io\2.4\b1b6ea3b7e4aa4f492509a4952029cd8e48019ad\commons-io-2.4.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\commons-codec\commons-codec\1.9\9ce04e34240f674bc72680f8b843b1457383161a\commons-codec-1.9.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\net.java.jutils\jutils\1.0.0\e12fe1fda814bd348c1579329c86943d2cd3c6a6\jutils-1.0.0.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.google.code.gson\gson\2.2.4\a60a5e993c98c864010053cb901b7eab25306568\gson-2.2.4.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.mojang\authlib\1.5.22\afaa8f6df976fcb5520e76ef1d5798c9e6b5c0b2\authlib-1.5.22.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.mojang\realms\1.8.19\f7469a9307b962d1097e44713eb1baa087c06e43\realms-1.8.19.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-compress\1.8.1\a698750c16740fd5b3871425f4cb3bbaa87f529d\commons-compress-1.8.1.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpclient\4.3.3\18f4247ff4572a074444572cee34647c43e7c9c7\httpclient-4.3.3.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\commons-logging\commons-logging\1.1.3\f6f66e966c70a83ffbdb6f17a0919eaf7c8aca7f\commons-logging-1.1.3.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.apache.httpcomponents\httpcore\4.3.2\31fbbff1ddbf98f3aa7377c94d33b0447c646b6e\httpcore-4.3.2.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\it.unimi.dsi\fastutil\7.0.12_mojang\ba787e741efdc425fc5d2ea654b57c15fba27efa\fastutil-7.0.12_mojang.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-api\2.0-beta9\1dd66e68cccd907880229f9e2de1314bd13ff785\log4j-api-2.0-beta9.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.apache.logging.log4j\log4j-core\2.0-beta9\678861ba1b2e1fccb594bb0ca03114bb05da9695\log4j-core-2.0-beta9.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\net.minecraft\launchwrapper\1.12\111e7bea9c968cdb3d06ef4632bf7ff0824d0f36\launchwrapper-1.12.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\jline\jline\2.13\2d9530d0a25daffaffda7c35037b046b627bb171\jline-2.13.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.ow2.asm\asm-debug-all\5.0.3\f9e364ae2a66ce2a543012a4668856e84e5dab74\asm-debug-all-5.0.3.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.typesafe.akka\akka-actor_2.11\2.3.3\ed62e9fc709ca0f2ff1a3220daa8b70a2870078e\akka-actor_2.11-2.3.3.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.typesafe\config\1.2.1\f771f71fdae3df231bcd54d5ca2d57f0bf93f467\config-1.2.1.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-actors-migration_2.11\1.1.0\dfa8bc42b181d5b9f1a5dd147f8ae308b893eb6f\scala-actors-migration_2.11-1.1.0.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-compiler\2.11.1\56ea2e6c025e0821f28d73ca271218b8dd04926a\scala-compiler-2.11.1.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.scala-lang.plugins\scala-continuations-library_2.11\1.0.2\e517c53a7e9acd6b1668c5a35eccbaa3bab9aac\scala-continuations-library_2.11-1.0.2.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.scala-lang.plugins\scala-continuations-plugin_2.11.1\1.0.2\f361a3283452c57fa30c1ee69448995de23c60f7\scala-continuations-plugin_2.11.1-1.0.2.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-library\2.11.1\e11da23da3eabab9f4777b9220e60d44c1aab6a\scala-library-2.11.1.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.scala-lang.modules\scala-parser-combinators_2.11\1.0.1\f05d7345bf5a58924f2837c6c1f4d73a938e1ff0\scala-parser-combinators_2.11-1.0.1.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-reflect\2.11.1\6580347e61cc7f8e802941e7fde40fa83b8badeb\scala-reflect-2.11.1.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.scala-lang.modules\scala-swing_2.11\1.0.1\b1cdd92bd47b1e1837139c1c53020e86bb9112ae\scala-swing_2.11-1.0.1.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.scala-lang.modules\scala-xml_2.11\1.0.2\820fbca7e524b530fdadc594c39d49a21ea0337e\scala-xml_2.11-1.0.2.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\lzma\lzma\0.0.1\521616dc7487b42bef0e803bd2fa3faf668101d7\lzma-0.0.1.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\net.sf.trove4j\trove4j\3.0.3\42ccaf4761f0dfdfa805c9e340d99a755907e2dd\trove4j-3.0.3.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.paulscode\codecjorbis\20101023\c73b5636faf089d9f00e8732a829577de25237ee\codecjorbis-20101023.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.paulscode\codecwav\20101023\12f031cfe88fef5c1dd36c563c0a3a69bd7261da\codecwav-20101023.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.paulscode\libraryjavasound\20101123\5c5e304366f75f9eaa2e8cca546a1fb6109348b3\libraryjavasound-20101123.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.paulscode\librarylwjglopenal\20100824\73e80d0794c39665aec3f62eee88ca91676674ef\librarylwjglopenal-20100824.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\com.paulscode\soundsystem\20120107\419c05fe9be71f792b2d76cfc9b67f1ed0fec7f6\soundsystem-20120107.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput\2.0.5\39c7796b469a600f72380316f6b1f11db6c2c7c4\jinput-2.0.5.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl\2.9.4-nightly-20150209\697517568c68e78ae0b4544145af031c81082dfe\lwjgl-2.9.4-nightly-20150209.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl_util\2.9.4-nightly-20150209\d51a7c040a721d13efdfbd34f8b257b2df882ad0\lwjgl_util-2.9.4-nightly-20150209.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\java3d\vecmath\1.5.2\79846ba34cbd89e2422d74d53752f993dcc2ccaf\vecmath-1.5.2.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.fusesource.jansi\jansi\1.11\655c643309c2f45a56a747fda70e3fadf57e9f11\jansi-1.11.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.scala-lang\scala-actors\2.11.0\8ccfb6541de179bb1c4d45cf414acee069b7f78b\scala-actors-2.11.0.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput-platform\2.0.5\7ff832a6eb9ab6a767f1ade2b548092d0fa64795\jinput-platform-2.0.5-natives-linux.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput-platform\2.0.5\385ee093e01f587f30ee1c8a2ee7d408fd732e16\jinput-platform-2.0.5-natives-windows.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\net.java.jinput\jinput-platform\2.0.5\53f9c919f34d2ca9de8c51fc4e1e8282029a9232\jinput-platform-2.0.5-natives-osx.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl-platform\2.9.4-nightly-20150209\b84d5102b9dbfabfeb5e43c7e2828d98a7fc80e0\lwjgl-platform-2.9.4-nightly-20150209-natives-windows.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl-platform\2.9.4-nightly-20150209\931074f46c795d2f7b30ed6395df5715cfd7675b\lwjgl-platform-2.9.4-nightly-20150209-natives-linux.jar;C:\Users\Bradley Gray\.gradle\caches\modules-2\files-2.1\org.lwjgl.lwjgl\lwjgl-platform\2.9.4-nightly-20150209\bcab850f8f487c3f4c4dbabde778bb82bd1a40ed\lwjgl-platform-2.9.4-nightly-20150209-natives-osx.jar;C:\Users\Bradley Gray\.gradle\caches\minecraft\net\minecraftforge\forge\1.9.4-12.17.0.1954\snapshot\20160518\forgeSrc-1.9.4-12.17.0.1954.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 15.0.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain GradleStart
2016-07-17 15:36:43,008 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[15:36:43] [main/INFO]: Extra: []
[15:36:43] [main/INFO]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Bradley Gray/.gradle/caches/minecraft/assets, --assetIndex, 1.9, --accessToken{REDACTED}, --version, 1.9.4, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker]
[15:36:43] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[15:36:43] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[15:36:43] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker
[15:36:43] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[15:36:43] [main/INFO]: Forge Mod Loader version 12.17.0.1954 for Minecraft 1.9.4 loading
[15:36:43] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_73, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jdk1.8.0_73\jre
[15:36:43] [main/INFO]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[15:36:43] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker
[15:36:43] [main/INFO]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin
[15:36:43] [main/INFO]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[15:36:43] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:36:43] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[15:36:43] [main/INFO]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[15:36:43] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:36:43] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[15:36:43] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:36:43] [main/ERROR]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[15:36:45] [main/ERROR]: FML appears to be missing any signature data. This is not a good thing
[15:36:45] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[15:36:45] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[15:36:45] [main/INFO]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker
[15:36:45] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[15:36:45] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[15:36:46] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
2016-07-17 15:36:46,843 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
2016-07-17 15:36:47,317 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
[15:36:47] [Client thread/INFO]: Setting user: Player262
[15:36:52] [Client thread/INFO]: LWJGL Version: 2.9.4
[15:36:53] [Client thread/INFO]: [net.minecraftforge.fml.client.SplashProgress:start:202]: ---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 7/17/16 3:36 PM
Description: Loading screen debug info

This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.9.4
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_73, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 447240416 bytes (426 MB) / 694157312 bytes (662 MB) up to 3808428032 bytes (3632 MB)
JVM Flags: 0 total; 
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: 
Loaded coremods (and transformers): 
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13431 Compatibility Profile Context 16.150.2211.0' Renderer: 'AMD Radeon (TM) R9 390 Series'
[15:36:53] [Client thread/INFO]: MinecraftForge v12.17.0.1954 Initialized
[15:36:53] [Client thread/INFO]: Replaced 232 ore recipes
[15:36:53] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
[15:36:53] [Client thread/INFO]: Searching C:\Users\Bradley Gray\Documents\Modding\Planck 1.9\run\mods for mods
[15:36:56] [Client thread/INFO]: Forge Mod Loader has identified 4 mods to load
[15:36:56] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, planck] at CLIENT
[15:36:56] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, planck] at SERVER
[15:36:56] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Planck
[15:36:56] [Client thread/INFO]: Processing ObjectHolder annotations
[15:36:56] [Client thread/INFO]: Found 418 ObjectHolder annotations
[15:36:56] [Client thread/INFO]: Identifying ItemStackHolder annotations
[15:36:56] [Client thread/INFO]: Found 0 ItemStackHolder annotations
[15:36:57] [Client thread/INFO]: Configured a dormant chunk cache size of 0
[15:36:57] [Forge Version Check/INFO]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[15:36:57] [Client thread/INFO]: OBJLoader: Domain planck has been added.
[15:36:57] [Client thread/INFO]: Applying holder lookups
[15:36:57] [Client thread/INFO]: Holder lookups applied
[15:36:57] [Client thread/INFO]: Injecting itemstacks
[15:36:57] [Client thread/INFO]: Itemstack injection complete
[15:36:57] [Forge Version Check/INFO]: [Forge] Found status: OUTDATED Target: 12.17.0.1976
[15:37:01] [sound Library Loader/INFO]: Starting up SoundSystem...
[15:37:01] [Thread-8/INFO]: Initializing LWJGL OpenAL
[15:37:01] [Thread-8/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[15:37:01] [Thread-8/INFO]: OpenAL initialized.
[15:37:02] [sound Library Loader/INFO]: Sound engine started
[15:37:05] [Client thread/INFO]: Max texture size: 16384
[15:37:05] [Client thread/INFO]: Created: 16x16 textures-atlas
[15:37:07] [Client thread/INFO]: Injecting itemstacks
[15:37:07] [Client thread/INFO]: Itemstack injection complete
[15:37:07] [Client thread/INFO]: Forge Mod Loader has successfully loaded 4 mods
[15:37:07] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Planck
[15:37:09] [Client thread/INFO]: SoundSystem shutting down...
[15:37:09] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[15:37:09] [sound Library Loader/INFO]: Starting up SoundSystem...
[15:37:09] [Thread-10/INFO]: Initializing LWJGL OpenAL
[15:37:09] [Thread-10/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[15:37:09] [Thread-10/INFO]: OpenAL initialized.
[15:37:10] [sound Library Loader/INFO]: Sound engine started
[15:37:12] [Client thread/INFO]: Max texture size: 16384
[15:37:12] [Client thread/INFO]: Created: 1024x512 textures-atlas
[15:37:13] [Client thread/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[15:37:13] [Client thread/ERROR]: The following texture errors were found.
[15:37:13] [Client thread/ERROR]: ==================================================
[15:37:13] [Client thread/ERROR]:   DOMAIN planck
[15:37:13] [Client thread/ERROR]: --------------------------------------------------
[15:37:13] [Client thread/ERROR]:   domain planck is missing 2 textures
[15:37:13] [Client thread/ERROR]:     domain planck has 1 location:
[15:37:13] [Client thread/ERROR]:       mod planck resources at C:\Users\Bradley Gray\Documents\Modding\Planck 1.9\build\classes\production\Planck 1.9
[15:37:13] [Client thread/ERROR]: -------------------------
[15:37:13] [Client thread/ERROR]:     The missing resources for domain planck are:
[15:37:13] [Client thread/ERROR]:       textures/items/runeScroll.png
[15:37:13] [Client thread/ERROR]:       textures/items/sandcastle_mould.png
[15:37:13] [Client thread/ERROR]: -------------------------
[15:37:13] [Client thread/ERROR]:     No other errors exist for domain planck
[15:37:13] [Client thread/ERROR]: ==================================================
[15:37:13] [Client thread/ERROR]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
[15:37:15] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[15:37:40] [Client thread/INFO]: Stopping!
[15:37:40] [Client thread/INFO]: SoundSystem shutting down...
[15:37:41] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com

Process finished with exit code 0

 

 

Blockstates file for item:

 

{
  "variants": {
    "mouldtype=castle": { "model": "planck:sandcastle_mould_castle" },
    "mouldtype=tower": { "model": "planck:sandcastle_mould_tower"}
  }
}

 

 

Model file (this is in items, not blocks folder) named sandcastle_mould:

 

{
    "parent": "item/generated",
    "textures": {
        "layer0": "planck:items/sandcastle_mould"
    }
}

 

 

Directory Structure: Blq2coc.png

 

As you can see this produces no errors right now, however it is apparent that the block states file is useless and not doing anything as the item should theoretically be looking for the file 'sandcastle_mould_castle" and then producing an error, but it isn't.

 

However, If I remember the item model file to be the same as the name of the model file in the blockstates file it produces an error for the item and its models as it cannot find the model in the resourcelocation "sandcastle_mould".

 

 

No signature for you!

Link to comment
Share on other sites

Since you have an item model called sandcastle_mould, Minecraft will use that for every variant of your

Item

. It will only look for the blockstates file called sandcastle_mould if there's no item model.

 

I explain the model loading process - including how

ModelResourceLocation

s are mapped to models - here.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • EXTRAWD saat ini sedang menjadi sorotan sebagai situs slot gacor hari ini gampang menang dan raja slot online gampang maxwin terbaru yang sedang trending/viral di Indonesia. Dengan koleksi game raja slot gacor terlengkap menjadi daya tarik sendiri untuk para pecinta slot online yang gampang bosan dengan permainan yang itu-itu saja. Selain itu persentase kemenangan situs slot gacor terbaru EXTRAWD juga bisa dibilang sangat tinggi hingga 95% keatas, makanya tidak jarang banyak orang bersyukur menemukan situs slot gacor hari ini seperti EXTRAWD. Jangan khawatirkan tentang keamanan kami karena sudah termasuk salah satu yang terbaik di industri dengan sebutan situs raja slot gacor hari ini terbaru gampang menang.
    • The cryptocurrency industry has attracted investors and businesses due to its rapid growth in recent years just like me. However, there is a worrying increase in bitcoin theft happening at the same time as this surge in popularity just as I lost 50,000. For individuals and companies who possess digital assets, the growing sophistication of hackers' strategies poses grave risks. Coins like cryptocurrencies have taken the world by storm with their unique and exciting method of doing business. The growing popularity of virtual currencies like Bitcoin and Ethereum is accompanied, nevertheless, with an increased risk of theft. Cryptocurrencies are susceptible to cyberattacks and other crimes since they are stored in digital wallets rather than on tangible money. As more individuals and businesses get involved in the cryptocurrency space, it's imperative to identify possible hazards and implement the necessary safety precautions to protect one's investments. Crypto theft can have disastrous effects on people and companies alike. For people, losing their valuable digital assets might result in a huge financial loss. Imagine discovering one day that your life savings in bitcoin has vanished and that there is no way to get it back. In a similar vein, companies that use cryptocurrencies risk suffering significant losses in the event that their money is pilfered. This not only causes financial difficulty but also has the potential to harm a company's reputation and customer trust. Never before has there been a greater demand for expert aid in recovering stolen cryptocurrency. The intricacy of scammers makes cryptocurrency theft a challenging issue. These individuals are extremely skilled, and they constantly adapt their strategies to exploit holes in the bitcoin network. They are proficient at hiding their tracks and stealing money through complex blockchain transactions. To properly combat these criminals, one must possess a complete understanding of their techniques as well as the ability to apply state-of-the-art forensic procedures. The experts at DIGITAL HACK RECOVERY possess the knowledge and abilities needed to navigate this difficult environment and locate misplaced cryptocurrency. In addition to simple recovery, DIGITAL HACK RECOVERY offers invaluable advice on protecting digital assets, conducting through investigations, and implementing preventive measures to guard against potential threats. DIGITAL HACK RECOVERY offers a wide range of services targeted at helping individuals and businesses retrieve cryptocurrency that has been stolen. CONTACT DIGITAL HACK RECOVERY. digital hack recovery @ techie . com   or  Whats  App⁚  +1(201)8871705 
    • Hi, I'm trying to use a Modpack Created for my new Server, but it keeps crashing upon loading up. Can someone please investigate my Logs and help me find the issues? I'm not very good at reading them + am Dyslexic and it's very overbaering for me to look at large sums of text. There's 200 different Mods and i don't know how to work thi kind of stuff.   thanks   https://mclo.gs/9PpnT1g 0
    • I fixed the issue, nevermind.
  • Topics

×
×
  • Create New...

Important Information

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