Skip 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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Also, don't use Object. I put " Object " because I don't know the correct type (nor do I care). You're supposed to change it to match what you're doing.
  2. For fuck's sake. Object o = it.next(); Stop calling .getClass() on everything.
  3. Because the furnace never faces its front side towards a wall. isFullBlock() returns true if the block...is a full...block, as in, fills 100% of its volume.
  4. You have this line: _Items.registerRenders(); That should not be there and whatever it's calling should be removed. Also, I really hate this FML event forwarding practice. Here's my client proxy: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/client/ClientProxy.java
  5. Ok, thre things: 1) Don't use Minecraft.getMinecraft().getRenderItem().getItemModelMesher() , use ModelLoader.setCustomModelResourceLocation 2) Don't call this line in common code, it MUST be in your ClientProxy 3) Don't use that version of GameRegistry.register , you may have noticed it has a fucking line through it because it's marked as deprecated. You should call item.setRegistryName(name) and pass the item (and only the item) to register
  6. 1.7.10 is no longer supported. Update.
  7. There should be a message in the console if an image file or json file is not located. Please post that.
  8. Dude, seriously. The first line is the most important one: it tells us/you what the error is. The second line is the second most important: it tells us/you where the error is. We need both.
  9. Your blockstate file doesn't contain an inventory variant.
  10. Most of the methods are pretty self explanatory.
  11. Why is it so difficult to convey things to you . I meant the corrected version of MY code. I have no idea how to put that into my code. It would save a lot of time if I could just have it fixed and then try to understand from that. No one is going to provide you code that you can copy and paste. You have top actually know what you're doing. You apparently missed the "this is not Java school" on the board description. Good news: that info is also in my sig.
  12. Actually, you can. Pick a random texture based on xyz coordinates. You'd have to reencode this as a non-saving property, but: https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/hazards/block/BlockUnstableStone.java#L173-180 That code is for more than 4 textures, but I worked out a really good distribution so it is very hard to notice any repeating patterns.
  13. You can lock the thread, that's fine. Also, don't use glow in your posts, please. It makes things hard to read.
  14. You need an example of the json? https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/resources/assets/harderores/blockstates/axel.json
  15. Make the itemstack have the enchantment when you pass it to the crafting recipe.
  16. Egietje is dumb. "Blockstate" and "model" aren't related. You need a blockstate file AND a model file.
  17. But magic doesn't shot from a dispenser. private BlockPos blockpos; //class field ... BlockPos blockpos = new BlockPos(this.xTile, this.yTile, this.zTile); //local variable Google "local scope"
  18. You are obviously doing something wrong, but without any code we cannot help you.
  19. [Tt]prefixName + suffixNam[/code] suffixName is an array, this isn't doing what you think is doing. That's why the old name ends in "[Ljava.lang.String;@64b7066e"
  20. Or rather, anytime as early as the constructor to just before registering.
  21. In standard nomenclature, the "I" denotes an interface.
  22. Did you register an item for your block?
  23. You're trying to get the item representation of the block in the world. The block in the world is passed to the method. There's your simple solution.

Important Information

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

Account

Navigation

Search

Search

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.