Jump to content

Ugdhar

Moderators
  • Posts

    2785
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by Ugdhar

  1. LogManager.getLogger(MODID) will return you an instance of Logger that you can use to write log messages to the console. edit: Logger#info(String) is the method you probably want
  2. Mod IDs I believe it is advised they all be lowercase, and I also believe I have seen it said that renderers should be registered in preinit. Try changing those 2 things and see what happens
  3. Post your code or a link to it, and the Minecraft version you're working with please
  4. textures is spelled wrong
  5. Awesome thanks for the info and link! Hopefully it'll help my understanding more! Any other info you or anyone else has is welcome! Aside from most tutorials out there being for 1.7.10 (I hate that version so bad), most of them are code with little to no explanation, and I'm not big on cutting & pasting code I don't understand at least mostly.
  6. So I've mostly got my head wrapped around using an IWorldGenerator to generate ores, but I'm wondering about more information on how minecraft does world generation (dimensions/biomes/etc), and how all the classes relate to each other. I've tried looking at the vanilla code, but honestly there are so many classes I get lost and confused. Most of the "tutorials" I've found are basically just code, nothing actually explaining how things fit together and/or how they work. I'm not looking specifically for code, but more of a breakdown/explanation of how the different classes fit together and can be added/changed for custom world generation. Any advice or links would be greatly appreciated!
  7. So, a couple things I noticed Don't use GameRegistry.registerItem, use GameRegistry.register(Object) to register pretty much everything; items, blocks, biomes Don't use Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register, use ModelLoader.setCustomModelResourceLocation use Item#setRegistryName before you register your item, and Item#getRegistryName instead of using getUnlocalizedName. and, I believe, the cause of the problem you're having, in your json you don't prefix your items/generic_item with your modid, that's why it's giving you an error about minecraft missing a resource, it's trying to look in the minecraft assets for your asset. *edit: And while I can clearly see the forge/minecraft version in your error log, it seems to be common practice to put the Minecraft version in the subject of your post.
  8. Try changing ModelResourceLocation("mapoverlay:item/tutorial_item", "inventory")); to ModelResourceLocation("mapoverlay:tutorial_item", "inventory")); Looking at a simple item I made, I didn't specify the "item/" in theModelResourceLocation call.
  9. You would want it to be /forge/src/main/resources/assets/mapoverlay/models/item/tutorial_item.json If it's throwing an error, what's it telling you?
  10. I believe your assets should be in your resources folder, not java.
  11. Start with simple stuff. A block that does nothing but has a custom texture. Make an item that does nothing. Make an item that's part of a recipe. Make an item that does something special/custom when you right click on it. Make a mob. Make another mob. Make those mobs hate each other and fight. Make some machines that must be manually interacted with. Make machines that are automatic. Figure out how to interface with another mod (Tinkers Construct and something that provides RF would be good choices IMO)
  12. Did you try trimming down your loot table to make it simple, to see if it works with just dropping 1 single simple item? For example, try using the loot table I posted that just drops a feather or 2. If that works, start changing 1 small thing at a time and testing.
  13. What was the solution?
  14. I honestly have no idea; my advice would be to trim down your loot table so that it only drops 1 simple item, then slowly build up from there. Also, where you have set_count, I have "minecraft:set_count", not sure if that makes a difference or not, but might be worth a try if it keeps giving you trouble.
  15. Maybe Block#onEntityCollidedWithBlock? I've never tried anything like what you're doing, but it might be worth looking into!
  16. /bin/assets/dgm/loot_tables/cheese_cow.json com.google.gson.JsonParseException: Loot Table "dgm:cheese_cow" Missing `name` entry for pool #0 That's the error, but I honestly don't know where you went wrong. My loot table is in assets\newmod\loot_tables\entities, called "DeathJaw.json". I never extended the LootTable class, I just have this line in a basic class that I planned to use for storing all my loot table registrations: public static final ResourceLocation ENTITIES_DEATHJAW = LootTableList.register(new ResourceLocation("newmod","entities/DeathJaw")); The only thing I can think to give a try based on what I see is try changing dgm:cheese to dgm:cheese_cow in your loot table json. *edit: but that doesn't even make sense, since name as far as I can tell is what you want to drop. What is the name of your loot table json, and where is it located?
  17. Same error? Post changed loot table/errors
  18. It looks to me like you have an extra set of curly braces around everything. Try removing 1 set from the top/bottom and see if that helps. This is the loot json for a mob I made when I was tinkering around with stuff, and it worked: { "pools": [ { "rolls": { "min": 1, "max": 2 }, "entries": [ { "type": "item", "name": "minecraft:feather", "weight": 1, "functions": [ { "function": "minecraft:set_count", "count": { "min": 1, "max": 2 } } ] } ] } ] }
  19. I think you may be running into the same issue I was having when I was tinkering with a machine like thingy. Basically the changes you're making to the items/inventory are only happening client side, and the client needs to send a networking packet to the server, which the server then needs to actually handle the modification of the inventory. http://www.minecraftforge.net/forum/index.php/topic,39598.msg208543.html#msg208543 is the link to the post I made http://www.minecraftforge.net/forum/index.php/topic,20135.0.html a good tutorial on the networking packets. This should hopefully get you going in the right direction, hope it helps!
  20. That's the one I'm looking at now, thanks! I'm sure once I break it down I'll figure it out, I had a time with the whole tileentity/container/gui thing until I made myself a little flowchart of how everything related to each other, then it worked fine, until I got to this point lol.
  21. Thanks for your reply, I guess it's off to figure out packets and networking!
  22. Hi, I'm tinkering around with modding, and I've run into an issue that I can't figure out, despite quite a lot of searching. I have a block (gem grinder), that has a tile entity, and a container and gui, and this all seems to work fine. I added a button, and can read when it's clicked. The problem is, I want it to remove a diamond from the top slot (0), and then put a new item (diamond dust) into the bottom slot. This *looks* like it works, but as soon as i touch any of the items, it all reverts back to the original configuration. I'm sure this is some sort of client/server sync issue, but I thought because I had a container, I didn't have to worry so much about that. Any pointers in the right direction would help. Also, first post, so I apologize if I am missing any important information, or breaching any etiquette. Thank you for your time! Gem Grinder Block: https://github.com/Ugdhar/funextras/blob/master/src/java/ugdhar/funextras/blocks/BlockGemGrinder.java Tile Entity: https://github.com/Ugdhar/funextras/blob/master/src/java/ugdhar/funextras/tileentity/TileEntityGemGrinder.java Container: https://github.com/Ugdhar/funextras/blob/master/src/java/ugdhar/funextras/inventory/ContainerGemGrinder.java Gui: https://github.com/Ugdhar/funextras/blob/master/src/java/ugdhar/funextras/client/gui/GuiGemGrinder.java GuiHandler: https://github.com/Ugdhar/funextras/blob/master/src/java/ugdhar/funextras/client/gui/ModGuiHandler.java
  23. I've never seen that error before, but google has a ton of hits: https://www.google.com/search?q=Job+%27Version+%26+Libraries%27+finished+with+1+failure%28s%29!&ie=utf-8&oe=utf-8 The first link seemed like it had a good discussion about it, and although it's for an older version of Minecraft, it might point you in the right direction. Good luck!
  24. I would follow LexManos on twitter, it will pretty much keep you up to speed on what's going on. https://twitter.com/lexmanos
×
×
  • Create New...

Important Information

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