Everything posted by Failender
-
[1.11.2] Item textures
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")); }
-
[1.11.2] Item textures
So I am still fighting the following error And I have no idea how to fix it and would be glad to get any input relating this issue
-
[1.11.2] Item textures
@SubscribeEvent public void registerItems(RegistryEvent.Register<Item> event) { event.getRegistry().registerAll(ProgressingPlayer.ITEM_LEARN_SCROLL); } @Awesome_Spider
-
[1.11.2] Item textures
The absolute path of the texture is E:/MinecraftModding/ProgressingPlayer/bin/assets/progressingplayer/textures/items/learnscroll.png, the relative path is src/main/resources/assets/progressingplayer/textures/items/learnscroll.png
-
[1.11.2] Item textures
This gives my mod a location, but he is still complaining about hte missing texture.
-
[1.11.2] Item textures
my clientproxy contains nothing related to that.
-
[1.11.2] Item textures
my modid is lowercase. Chhonster is also creating them in his testmod, and I wasnt sure if it could help, since I cant find any documentation about them https://github.com/Choonster/TestMod3/blob/1.11.2/src/main/resources/pack.mcmeta
-
[1.11.2] Item textures
Im not sure how to fix that to be honest. I created a pack.mcmeta and placed it under src/main/resources Choonster post is only telling that resource files should be named using lower-case only, which my items are doing?
-
[1.11.2] Item textures
Well I thought the new way would do that for me, but I was unable to find a page where the new way is documented. And its complaining about a missing resource, so I thought I am registering it wrong?
-
[1.11.2] Item textures
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 I would be glad if someone could tell me where my error is. Greetz, Failender
-
[1.7.10] about @SideOnly(Side.SERVER)
There is no point in using SideOnly(Server). Don't use it
-
Why my GuiHandler gives error [1.7.10][Unsolved]
Show the error?
-
[1.7.10] Need to persist a static HashMap with instances of my TileEntity
Why do you need that? You can use WorldSaveddata, but I'm not sure if it exists in 1.7 But you can still use plain java and save it as file
-
[1.8.9] Replace Vanilla Classes
Most of that can be done with events, no need for changing vanilla classes. For everything else you can use ASM, but I don't recommend it
-
[1.8.9] Problem building with API
Where did you put the jar
-
1.8.9 Custom arrow spawn on the player
If you would know what extending a class means you wouldnt be asking this to me right now. The point is you cant write a propper minecraft mod without knowing java.
-
1.8.9 Custom arrow spawn on the player
You extend the class EntityArrow just to copy paste all of it.. So this will sound rude buuuuuut.. learn java.
-
1.8.9 Custom arrow spawn on the player
that sounds cool
-
[1.8][SOLVED] NBT data not saving
Oh yeah forgot about that one. You better do what diesieben said its way better x)
-
[1.8] Right click Menu popup
override onItemRightClick and there open the gui via player.openGui(); you will need a GuiHandler and all that stuff set up to make that work.
-
[1.8] How can I change item's NBT during crafting
create ur own implementation of IRecipe and in getCraftingResult add the needed NBT to the stack before returning it
-
[1.8][SOLVED] NBT data not saving
Look how BlockFurnace keeps his tileEntity
-
[1.8][SOLVED] NBT data not saving
well. setting a new block also creates a new tileentity unless you tell it to not do so.. i guess tahts your problem. You are incrementing the olive count. playing your animation. that creates a new tileentity and heyo you got a count of 0
-
[1.8][SOLVED] NBT data not saving
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
-
Forge Eclipse Error
1. dont use the example mod create your own 2. use code tags [nobbc] [/nobbc] 3. if u got a crash show us ur crash log (u can use spoiler tags there) 4. you are never initliazing myFirstItem, so it will always be null
IPS spam blocked by CleanTalk.