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. getMetaFromState/getStateFromMeta only handles the metadata encoded information (16 unique states) getActualState handles all the other states: TileEntity, World, etc.
  2. Look at BlockWool, it has a color enum already. You'd want something just like it, only with fewer colors (or you can re-use it). Alternatively, I did my enums like this: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/blockproperties/Props.java#L17-L68 I created an interface to get/find metadata values, name, etc. My approach was simpler as it only required a single interface that I could apply to every enum rather than having an arbitrary approach involving a META_LOOKUP array. (Although it looks like my getByOrdinal(int) method is broken in that repo, and I currently don't have access to my dev; long story short, there's already a way to get an enum by ordinal and that method is just a wrapper, but is supplied by the interface: EnumWhatever.values[n] ).
  3. Blockstate json files: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/resources/assets/harderores/blockstates/hardiron.json That block has an IProperty integer for its variants, but enum values work as well: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/resources/assets/harderores/blockstates/millstone.json#L27
  4. Is your main mod class called SpearMod ?
  5. Go look at what the super method does. Do what the super method does, only use your own Mod ID instead of "minecraft."
  6. Ugh. Getting the super return, substringing it, and concatenating it.... It's almost like there'd be an easier way to do that.
  7. Yeah, it's just superfluous code. It is technically a bug, but one that doesn't mean anything.
  8. Go find MovingPositionedSound and then go find it's super class. Which is unsurprisingly called...PositionedSound.
  9. It's a new system, but it's not that hard to understand and there are several tools out there (like McCrayfish Model Creator) that make things easier.
  10. I apologize, I thought that json was poinging at one of the block models you created. Undo that, that's the item model. There might be a problem there as well, but I can't see it. That said, there's still the same problem: Your olportal_ew.json file (and the other one) has a "portal": texture definition, but the elements uses "#olportal" so these are not hooked up to each other.
  11. Change "all": "chemmix:blocks/olportal" To "olportal": "chemmix:blocks/olportal"
  12. "texture": "#olportal" "all": "chemmix:blocks/olportal" ...seriously? You defined a variable called "olportal" and then said "set the variable 'all' to [texture]"
  13. Double click on a class to open it and look at the object hierarchy window.
  14. A Minecraft modding tutorial wouldn't help you with the problems you have. You need to have a stronger understanding of OOP first.
  15. Everything in the cpw package moved to net.minecraftforge. Rather than typing out imports, let your IDE do it for you. Remove all your import lines, then hover over each object one after the other and import the right thing (or hit ctrl-O). Also, do not do Main instance = new Main() , that "new Main()" portion is unnecessary and will be overwritten by Forge when it instantiates your mod.
  16. If you want it to glow in the dark, you can do that with baked models.
  17. There's two gradle commands. Did you run both?
  18. "Skipped" means that the file needing to be downloaded is already current. It's not an issue.
  19. AH HAHAHAHAHA This will never work. If someone is cheating, they can decompile your mod and make it report whatever the fuck they want. Only one thing is ever true about a client/server interaction: Assume the client is always lying.
  20. You done gone fucked up. Start over by reinstalling Forge.
  21. I think it needs to extend a Capability object/interface of some sort, but that would be a valid interface for the custom one, yes. You'd then need to implement it. I'm away from dev, so I can't check.
  22. Do not strip that off! Unlocalized names are GLOBAL, if you add an item with the unlocalized name "item.thingy.name" (or I should say, that's what shows up when you go to put it into your localization file) and localize it to "Awesome Hat" and then another mod comes along and creates an item with an unlocalized name of "item.thingy.name" localized to "Neat Wand" guess what? Both items in-game will display with the same name, depending on which mod loads second. Instead, if both mods left their mod ID in the unlocalized name, this would not happen.
  23. getRegistryName().toString() ResourceLocations aren't implicitly converted to strings.
  24. ModelLoader does not exist on the dedicated server. Do you understand why the proxy system exists?
  25. Shame it will still crash a dedicated server because it has client-side-only code in a common place.

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.