
RoseCotton
Members-
Posts
62 -
Joined
-
Last visited
Everything posted by RoseCotton
-
Does anyone know why some of the variables and functions in minecraft have very nondescript names, like in EntityHanging function arguments p_i45853_2_ and p_174859_1_ and functions like func_174856_o? Is there some rule of thumb where all of these odd variables and functions have something to do with some category of functionality of the code? I'm trying to find out how the item frame works so I can learn to make shelves on which I can store and show items, like a treasure chest only you see the items, but I can't get my head around all these seemingly meaningless names.
-
I'm editing code from my custom block mod for a new mod and having a hard time registering a new type of block. I'm trying to make shelves, so the block is more like a chest. I'm taking this in baby steps and I've borrowed many of the methods from the BlockChest class, but it extends BlockContainer, which I can't seem to find anywhere, instead of Block. So when I try the code to render the item in my main mod class (ShelvesMod.java), it chokes on my attempts to use methods like "getName" and "renderItem.getItemModelMesher": @EventHandler public void init(FMLInitializationEvent event) { if(event.getSide() == Side.CLIENT) { renderItem.getItemModelMesher().register(Item.getItemFromBlock(shelfBlock), 0, new ModelResourceLocation(ShelvesMod.MODID + ":" + ((BlockShelf)shelfBlock).getName(), "shelfBlock")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(shelfBlock),0, new ModelResourceLocation(ShelvesMod.MODID+":"+ ((BlockShelf)shelfBlock).getName(), "inventory")); } } Sorry I can't figure out how to "insert code"; the button above doesn't seem to do anything. I plan to figure out how to actually render the texture of the shelves plus icons of the items on the shelves next, but for now I just want to know how I should be handling this item. Any suggestions on how to render a chest-like item? UPDATE: Ok nevermind.... I'd forgotten to un-comment my declaration of renderItem RenderItem renderItem = Minecraft.getMinecraft().getRenderItem(); renderItem.getItemModelMesher().register(Item.getItemFromBlock(shelfBlock), 0, new ModelResourceLocation(ShelvesMod.MODID + ":" + "shelfBlock", "shelfBlock")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(shelfBlock),0, new ModelResourceLocation(ShelvesMod.MODID+":"+ "shelfBlock", "inventory")); UPDATE2: code runs, but the placeholder model doesn't show up, even though in the BlockShelf class I'm specifying a tab in which it should appear. this.setCreativeTab(CreativeTabs.tabMisc);
-
I don't think I can help, although I question why you're using BlockRendererDispatcher and not something like what worked fro me (for a much simpler block): renderItem.getItemModelMesher().register(Item.getItemFromBlock(brickBlock), 0, new ModelResourceLocation(Testmod01.MODID + ":" + ((BlockBrick)brickBlock).getName(), "brickBlock")); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(Item.getItemFromBlock(brickBlock),0, new ModelResourceLocation(Testmod01.MODID+":"+ ((BlockBrick)brickBlock).getName(), "inventory")); But can you share your custom chest code for me to study? I'm trying to learn to make a shelf and do not know where to start. PM, email, or post? UPDATE: ok the code I pasted above totally doesn't work for the chest-like item I'm trying to create because I have extended the BlockContainer class instead of the Block class and I'm trying to figure that out now.
-
Maybe I'm too new to understand, but why do you have so many true directions for the way each entry is facing? why not use something like this (only way more complicated, I'm sure): { "variants": { "facing=up": { "model": "normal_torch" }, "facing=east": { "model": "normal_torch_wall" }, "facing=south": { "model": "normal_torch_wall", "y": 90 }, "facing=west": { "model": "normal_torch_wall", "y": 180 }, "facing=north": { "model": "normal_torch_wall", "y": 270 } } }
-
Hi, All. For my second ever mod attempt, I plan to create a Forge for minecraft 1.8 version the Shelf Mod that my son wants so very much. The original mod is shown here: http://www.games-utilities.com/shelf-mod/ There is a video about it on youtube by thediamondminecart (omg I love that guy). I'm about to dive into the code for a chest to understand how to hold items, but I'm at a total loss as to how I can display the items in the shelf in the block model. I imagine I will edit the model file to reference the textures of the (up to) 9 items on the shelf, shrink the item model a little, place it in the correct location, etc. but I have no idea how to go about doing that since I've only found or written model file examples for very mundane blocks and items. How would you do it? Can you help or point me to the right place to better understand: -accessing items stored in a chest-like block -displaying items in a block, like an item in a picture frame -creating a non-cubic model for a shelf that looks kind of like stairs but with an extra tier (I'll ditch the extra tier and move to 4- or 6-position shelves if need be - I'm still a beginner) +preferably be able to use any type of wood and show the different wood colors in the shelf (my kid loves the different wood types in the game) or to be able to dye the shelves Thanks for any input!
-
[1.8] Is there a release notes for Forge for Minecraft 1.8?
RoseCotton replied to RoseCotton's topic in Modder Support
Ok, and in an unrelated search, I found Lex's post on the update: http://www.minecraftforge.net/forum/index.php?topic=27505.0 Check it out. I forgot to summarize the BlockPos change. -
[1.8] MinecraftByExample sample code project
RoseCotton replied to TheGreyGhost's topic in Modder Support
Seriously, copying and pasting code isn't that easy. It never works for me. I always have to learn all the details of how the code was supposed to work, and change some tiny things, before it will work. But it's a darn good start! -Noob -
[1.8] Is there a release notes for Forge for Minecraft 1.8?
RoseCotton replied to RoseCotton's topic in Modder Support
Ok, after reading all the entries for 1.8, for those of you who want my summary, I liked the ones below the best. The rest, for the most part, didn't call out many specific keywords. Build 1.8-11.14.1.1328: LexManos: Fire WorldEvent.Load for Client worlds. Closes #1719 Build 1.8-11.14.1.1327: LexManos: Make Container.mergeItemStack respect Slot.isValidItem Closes #1630 Build 1.8-11.14.1.1326: LexManos: Fix JukeBoxes not storing the inserted record. All TE's in minecraft are in net.minecraft.tileentity EXCEPT JukeBoxes. Closes #1633 Closes #1714 Build 1.8-11.14.1.1309: fry: fix ModelLoader.setCustomModelResourceLocation not storing same item with different metadata values Build 1.8-11.14.1.1308: LexManos: Fixed debugging Dedicated server in Forge Dev workspace. LexManos: Fixed being kicked from the server while swimming. fry: fixed NPE during loading of B3D models without textures/brushes. changed default B3D color to have full opacity. fry: Reworked vanilla texture resolution, hopefully fixes NPE bug in FaceBakery fry: made renderLayer ThreadLocal, now it should hold correct value for use inside custom baked models LexManos: Try a maven mirrior to fix build issues. -
[1.8] Is there a release notes for Forge for Minecraft 1.8?
RoseCotton replied to RoseCotton's topic in Modder Support
Oh, man, so that changelog is the release notes... ok, I'll dive in. I'd only found outdated versions, and was happy to use that as an excuse to close them quickly. My main issue is that I'm not updating, I'm beginning from scratch with little understanding of the tools Forge offers and I haven't found a good list of the available classes and methods to use, so I'm stumbling through it. Thank you for the correct changelog link and the advice on blockID, though I still don't know how to make a block drop itself since the idDropped() method seems to return an int, which would have been the blockID. -
I'm new to modding and am translating the Minecraft version 1.7 tutorials to version 1.8 with the help of just a couple (incomplete) tutorials on how to update mods. Is there a reference somewhere that documents the changes between the version of Forge for Minecraft 1.7 vs. 1.8? Currently I'm stuck on how to get a blockID so I can make a block drop itself, but I'm also having a hard time getting setHarvestLevel(string,int) to work (the only suggestion I found is to reinstall everything, and I just haven't been brave enough to do that). I want to learn a lot more, like how to make an ore detector, but have a lot of stumbling around to do before I'll get there. I'm looking for resources to read that pertain to version 1.8 or resources for 1.7 and translation information. Plus I only have a couple weeks before I have to start working again so I don't want to waste too much time when I could be learning from good resources. Thanks in advance for any help you can provide!