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.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Use metadata instead. Every random updateTick, increase the metadata by 1, then display an icon based on the metadata. What you're doing now is not going to work, as the Block class is a singleton.
  2. EntityLivingBase#canSpawnHere(...) ?
  3. if(event.distance > 1) { event.distance -= 1; } Seriously. Math. Use it.
  4. Look for a case statement. There's one main one that takes the block ID and passes off the rendering for certain blocks in various ways. Grass may have its own, if not it falls into a standard cube renderer.
  5. Ok i don't exactly know how to do this, so where is the grass block rendered? Giant class called RenderBlocks.java, if I recall correctly. I don't recommend looking through it, it's not organized in a fashion that will help you.
  6. Render in multiple passes. In the second pass render the overlay texture with the color multiplier.
  7. Also watch out for Client-side only constructors. EntityFireball has one and has caused a headache or two.
  8. I don't think blocks like having bounds outside a full cube.
  9. You don't need to implement or use any packets to synch inventories. My guess is that somewhere along the line you've improperly set up your gui / container / tileentity classes, but I wouldn't know where to look.
  10. 1) Gradle subforum. 2) Are you downloading the right thing? I just checked the Forge-latest source link and it contained gradlew.bat, as expected.
  11. Why don't you look at the source for the vanilla blocks that do what you want and figure it out.
  12. Fuck, you really can't look at vanilla to see how it handles it? Open BlockLeavesBase, BlockBreakable, BlockGlass, BlockPortal, BlockLeaves, or BlockIce and see how that block does it. It's really simple, really obvious, and has a freaking javadoc about transparency and rendering.
  13. As it happens, I cannot read minds or remote view your screen.
  14. Like the item function isMap() that is used by nothing (there's actually one reference, fairly obscure). Maps rendering in item frames is handled by if(containedItem == Item.Map) which makes extending ItemMapBase for any reason a real annoyance.
  15. What does this mean
  16. Mojang code. Learn to deal with it. In time you will come to love it.
  17. Define "does not work"
  18. And without the crash log, we can't help you.
  19. You didn't set the leaf block to be transparent. Look at BlockIce
  20. The file name does not match the string that you're telling minecraft to look for.
  21. I know what the problem is. "log_redstone.png.png" doesn't match "log_redstone" (file name you specified) + ".png" (implied file extension).
  22. Air. Block ID 0 is null in vanilla.
  23. Block#updateTick()? World#scheduleUpdateTick()?
  24. And the material variable is going unused. Either pass it to super, or get rid of it.

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.