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. Draco18s replied to a post in a topic in Site News (non-forge)
    There is no such thing as "perfect security." Actually there is. It's called "unplugging it from the internet and turning it off."
  2. Yes. Potions use an NBT "Potion" tag to indicate the potion type. http://minecraft.gamepedia.com/Potion#Data_values
  3. Blockstates != Models.
  4. Blockstates don't solve the models problem. All it does is solve the mapping (the Cartesian product of multiple properties) from state to model. If you want to do models, you're going to need to make your own IModel (possibly with some other interfaces, like IPerspectiveAwareModel) implementation.
  5. See if you can find the source for the Morph Mod
  6. Draco18s replied to a post in a topic in Site News (non-forge)
    Because Windows 7 is still better than literally any other version of Windows?
  7. Draco18s replied to a post in a topic in Site News (non-forge)
    Another issue. If you try to select a part of a quoted post that contains an @mention and delete it, the wrong stuff gets deleted: https://dl.dropboxusercontent.com/u/7950499/2017-03-02 12-54-33.mp4
  8. I was referring to the bit about Blocks having rendering modes: CUTOUT, TRANSPARENT, etc. But if you're right about that not affecting items, then my bad.
  9. Ok, seriously, this isn't that hard. And I'm not always here. Your posts two hours ago I was asleep. This is the important part: You need to pass a mesh definition to the ModelBakery: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L123 Because of how I want my code set up I created an interface to get this information from an item rather than creating it at the point of registration. What's an item mesh definition? https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/industry/item/ItemCastingMold.java#L81 That. That is a vanilla class/interface. And everything that happens inside is is the part you will need to write yourself. IItemWithMeshDefinition is the only thing I made (plus how to turn my NBT data into a model resource location), you don't have to recreate it if you don't want to.
  10. What are you sending a packet for? There's already an event on the server for when a player joins: why is that not sufficient?
  11. The beacon is a block and blocks have Special Rules for rendering. I'm not sure you can render the same thing with a regular item, as Transparency is Complicated.
  12. world.getBlockState() returns an IBlockState. If you want the Block from this, you need to do .getBlock()
  13. It was an interface I created to handle the types of operations I was doing.
  14. It's for passing in a resource location to the ModelBakery: ModelBakery.registerItemVariants((Item)item, meshDef.getModelLocation(variantStack)); And here's the various models: https://github.com/Draco18s/ReasonableRealism/tree/master/src/main/resources/assets/expindustry/models/item
  15. Congrats, you use system.out and passed in a complex object type which doesn't override ToString to return a meaningful value. You're looking at the string representation of a pointer. Please stop Cargo Cult-ing. You need to actually do something with the m in order to get any data out of it. Go look at the class (right click -> jump to declaration on the variable's Type).
  16. I won't be giving you an more information, because the method that exists is built into the Java framework and mucking about with it and not knowing what you're doing means you're going to do it wrong. Even if it does compile and run without problems you'd still be doing it wrong and you'll end up incompatible with some mod somewhere because of some random thing you didn't account for. Like some other dickhead also mucking about doing the same thing you are for some reason. Then the game crashes and users come here and complain to Forge and it isn't Forge's problem and no one can slap you up side the head for doing something dumb because there's no indication in the crash report that your mod modified things. TL;DR just don't.
  17. Are they the single color of the pixel in the top-left of your texture? (or another corner) If so, your UV coordinates aren't set up.
  18. Oh. No, what I linked won't work for you. What I linked is only for metadata. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L120 https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/industry/item/ItemCastingMold.java#L79
  19. Search for older threads, "TextureAtlasSprite" That'd be the way to do it.
  20. Basically, yes. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java#L161-L168
  21. Note: Forge has an energy capability system already set up for use, you just need to implement it.
  22. That is not what that document says. It is saying that EntityJoinWorldEvent extends EntityEvent already, not that YOU need to extend EntityEvent in order to use it.
  23. Make the block shorter than 1 block tall.
  24. What documentation where?

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.