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. If you're going to do that... Move your enum variant and definitions into the tomato class. You want a clean double plant class? Then remove all of the specific stuff from it. Also AH HAHAHAHA
  2. Better idea, store the world time and compare. Modifying an item's NBT data every frame cause the client to think you have a new item and play the re-equip item animation.
  3. There are still some additional functions you need from BlockDoublePlant: onBlockPlacedBy (yours is wrong), canPlaceBlockAt, and onBlockHarvested and you need to call setDefaultState in the constructor (look at BlockDoublePlant) Optionally you may also want to include: isReplaceable, getItemDropped (yours differs), and removedByPlayer
  4. Like I said, find another hobby. Being a programmer professionally, there is certainly a degree of knowing libraries and APIs, but it is still about problem solving. I can't add two numbers together to save my life (no joke, I just asked wolfram alpha to do some polynomial multiplication for me), but I still need to know the process, the reason why I need to add two numbers and not multiply them, or what a dot product is vs. a cross product. Sure, I might just be gluing a bunch of tools together to get the result I want, but I still need to know which tools to glue together and in what order. And that is problem solving. And you know what else I have to do? Recognize when an API or library has changed and made one method out dated and replaced it with a better, more flexible way of doing things. And that's what Minecraft did with the JSON model system: models can now be defined by resource packs, not just textures. Recipes too, once data-packs are finalized. Doing that requires changing how the system works, but the end result is far and above worth the effort that it costs us modders. What did this guy say? Oh right:
  5. No. You already have it. I even told you how to find it. Go fucking look at it.
  6. Jesus mother fucking christ on a crutch. You do know how to create your own variant blocks, yes? createBlockState, getMetaFromState, and getStateFromMeta?
  7. Feel free to read up: https://en.wikipedia.org/wiki/Quaternion This is expected for one of two reasons: 1) GL deals with rotation as a quaternion and when you make an adjustment in Euler, the end result is not neccessarily the same Euler (to avoid gimbal lock) 2) Rotation around a rotated axis changes all of the Euler values from a non-rotated reference frame.
  8. checkAndDropBlock and canBlockStay. The class is only 336 lines long and 26 methods, it shouldn't have been that hard to find.
  9. Programming is not for you. Programming is all about making your own Advanced level 5D sodoku/rubiks/crossword puzzle hybrids and then solving them. If this makes you frustrated and angry, then you need to find some other hobby.
  10. Use capabilities.
  11. You might have some luck in looking into the code Vanilla uses to render name tags.
  12. Lore. L-O-R-E. Also more correctly called "tooltip information". Lure is something else entirely.
  13. Look at what BlockDoublePlant does to make that happen.
  14. BlockDoublePlant It contains a variant you don't want, don't need, and is fucking up your ability to create a valid blockstate file.
  15. Don't do that. Do this: new ModelResourceLocation(FastCobbleItem.getRegistryName().toString(),"inventory") Problematic Code #1 Not visible in your code, but worth checking: #7, #10 As to your actual problem: I can't actually find your problem in your post.
  16. Overriding items is an intended feature but only one mod can override any given item. It's a necessary sacrifice.
  17. Uh...duh? When you buy more socks, the odds that you grab a white one out of your sock drawer at random changes. Vanilla doesn't want to spawn more total mobs as the variety increases (otherwise you reach a hyperbolic example of a billion different mobs and vanilla insures that at least one of each is spawened at any given time, making it impossible to move without running into something) so the actual percentage chance goes down.
  18. I renamed a parameter in a function once. I'd have done it more, but I forgot the syntax MCPBot uses to override the protections on letting people rename anything (as you can't edit the javadoc without said override).
  19. I think your problem here is that rotations are fundamentally a 4-axis object and you're trying to piecemeal it with three. Yes, Euler Angles are a Thing, but they suffer from gimbal lock. This is the closest thing I can find that has the right math: https://stackoverflow.com/questions/14720264/create-a-rotation-matrix-from-a-position-and-a-look-at-position
  20. I'd assumed it was to query whether or not a cap existed, and if so, get the cap. Hence my lazy-programmer implementation of has() being return get() != null
  21. This is because you're not overriding getSubItems, but a parent class is, providing variants you don't want. Every single one of your model problems is likely also related to that fact. Stop extending that class. (You also didn't do anything about 2,3,and 4 in my bullet list, but whatever)
  22. Where do you put other client-side-only code?

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.