Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ugdhar

Moderators
  • Joined

  • Last visited

Everything posted by Ugdhar

  1. 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.
  2. Maybe Block#onEntityCollidedWithBlock? I've never tried anything like what you're doing, but it might be worth looking into!
  3. /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?
  4. Same error? Post changed loot table/errors
  5. 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 } } ] } ] } ] }
  6. 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!
  7. 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.
  8. Thanks for your reply, I guess it's off to figure out packets and networking!
  9. 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
  10. 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!
  11. I would follow LexManos on twitter, it will pretty much keep you up to speed on what's going on. https://twitter.com/lexmanos

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.