Jump to content

Failender

Forge Modder
  • Posts

    1091
  • Joined

  • Last visited

Posts posted by Failender

  1. Well. Where is the correct location?

    Texture files(items) go into assets.modid.textures.items , right?

    Is there any documentation how to correctly register the items (including location of jsons / textures and correct usage of ModelRegistryEvent)? readthedocs is not complete in that regard.

     

    @SubscribeEvent
    public void registerModel(ModelRegistryEvent event) {
    	registerItem(ITEM_LEARN_SCROLL);
    }
    
    private void registerItem(Item item) {
    	ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory"));
    }

     

     

  2. So I am still fighting the following error

     

    Spoiler

    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN progressingplayer
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]:   domain progressingplayer is missing 11 textures
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]:     domain progressingplayer has 1 location:
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]:       mod progressingplayer resources at E:\MinecraftModding\ProgressingPlayer\bin
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain progressingplayer are:
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/learnscroll.png
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain progressingplayer
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
    [11:41:37] [Client thread/ERROR] [TEXTURE ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

    And I have no idea how to fix it and would be glad to get any input relating this issue

  3. Spoiler

    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN progressingplayer
    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]:   domain progressingplayer is missing 1 texture
    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]:     domain progressingplayer has 1 location:
    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]:       mod progressingplayer resources at E:\MinecraftModding\ProgressingPlayer\bin
    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain progressingplayer are:
    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/learnscroll.png
    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain progressingplayer
    [21:53:51] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================

    This gives my mod a location, but he is still complaining about hte missing texture.

  4. Im not sure how to fix that to be honest.

    I created a pack.mcmeta and placed it under src/main/resources

    Spoiler

    {
        "pack": {
            "pack_format": 3,
            "description": "Resources for ProgressingPlayer"
        }
    }

    Choonster post is only telling that resource files should be named using lower-case only, which my items are doing?

  5. Hey there,

     

    I am having problems registering the textures for my items. I know that I am missing something seriously obvious and hope that some1 can point me in the right direction.

     

    I got the following item-class

     

    public class ItemLearnScroll extends Item{
        public ItemLearnScroll() {
            setMaxStackSize(1);
            setUnlocalizedName("learnscroll");
            //For testing until i got my own tab
            setCreativeTab(CreativeTabs.FOOD);
            setRegistryName("learnscroll");
        }   
    }

     


    I register the item in the event

    @SubscribeEvent
    public void registerItems(RegistryEvent.Register<Item> event) {
        event.getRegistry().registerAll(ProgressingPlayer.ITEM_LEARN_SCROLL);
    }

     

    src/main/resources/assets/progressingplayer/models/item/learnscroll.json

    {
        "parent": "item/generated",
        "textures": {
            "layer0": "progressingplayer:items/learnscroll"
        }
    }

     

    The texture is located under src/main/resources/assets/progressingplayer/texures/items/learnscroll.png

    The item is registered, but got no texture

     

    This is the important error log


     

    Spoiler

    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]: The following texture errors were found.
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]:   DOMAIN progressingplayer
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]: --------------------------------------------------
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]:   domain progressingplayer is missing 1 texture
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]:     domain progressingplayer has 1 location:
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]:       unknown resourcepack type net.minecraft.client.resources.LegacyV2Adapter : FMLFileResourcePack:Progressing Player
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]:     The missing resources for domain progressingplayer are:
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]:       textures/items/learnscroll.png
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]:     No other errors exist for domain progressingplayer
    [20:18:19] [Client thread/ERROR] [TEXTURE ERRORS]: ==================================================

     

    I would be glad if someone could tell me where my error is.


    Greetz,

    Failender

     

  6. if (((Integer)state.getValue(PRESS)).intValue() >= 3) {
    	world.setBlockState(pos, state.withProperty(PRESS, Integer.valueOf(0)));
    } else {
    world.setBlockState(pos, state.withProperty(PRESS, Integer.valueOf(((Integer)state.getValue(PRESS)).intValue()) + 1));
    }
    

    what exactly are you triing in your onBlockActivatedMethod with that

×
×
  • Create New...

Important Information

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