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. The only one you need to know about is the one at the top called Forge. It contains readable vanilla source code.
  2. Forge registries offer an enumerator like all other lists. I.e. it works in a for-each loop just fine.
  3. No. You should never post vanilla code. What you posted is what was required. Yes you can. Its under Referenced Libraries.
  4. The class that extends Entity____
  5. .getHeldEquipment() returns an ItemStack, it will never be equal to an Item.
  6. I haven't fiddled around with in in a UI for a long time. I think that in a UI it does clipping: anything below half is 0, anything above half is 1.
  7. Yes, Minecraft ignores alpha values below about 0.15 iirc. Its not very good with the rest of the spectrum either.
  8. Having seen previous threads about custom fishing rods, I am not entirely sure that everything about them can be done (or if it can, its difficult). E.g. custom loot tables.
  9. All blocks in the game? You won't be able to do this easily. Add it to your own blocks? Fairly easily. I did this with my own ores.
  10. Welcome to Cargo Cult programming.
  11. Not sure what's going on there. But. IHasModel is stupid. ALL items need models and the information required to register one is all public.
  12. Adding/removing @Override does fuckall in the execution and compilation process. Its purely for your IDE to error check.
  13. See my edited post. It isn't overriding anything from vanilla. It should not be there at all.
  14. This is why you mark methods as @Override. If Eclipse throws an error about it the correct answer is NOT AND NEVER WILL BE "remove @override" Correction: That method isn't overridden from anything. It should not exist in common code at all.
  15. I'm almost certain he's modding without using Forge (i.e. jar modding).
  16. These two: You can end up with a Z value for this block's position (with a z1 equal to 0) as high as 35 and you shouldn't go above 31.
  17. Yes. You can right click on any name and in the menu that opens up, click "jump to definition." If you do this on BlockLogs it'll open the vanilla class.
  18. Like I said, you need to go look at vanilla's BlockLogs class and find the right names.
  19. Block states include more information than just the block itself. Right now the code you have detects ALL types of planks. In order to only get oak planks you need to check the block state's variant as well. E.g.: world.getBlockState(blockPos).getProperty(BlockLog.VARIANT) == BlockLog.EnumType.OAK Note that this is not 100% accurate, I don't have my dev workspace up at the moment, but you should be able to use this to find the enum inside the BlockLog class
  20. None of it. Its common code. Correct.
  21. 1) show your code 2) define "doesn't work" Your posts have been about as helpful as going to the doctor and saying, "it hurts!"

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.