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.

OrangeySnicket

Members
  • Joined

  • Last visited

Everything posted by OrangeySnicket

  1. I know, I know... This is everybody's favorite part! Nothing quite so thrilling as localization, which is why you'll all be overjoyed to hear that the slabs I'm creating for my mod are all named simply "null.name", in defiance of everything I've been able to learn about lang files and blockstates and such. I'd appreciate some help with that, as I do so hate to keep all the fun for myself. That would just be selfish. My code is at https://github.com/OrangeySnicket/CosCraft-Mod/tree/WIP/workspace/InvestitureMod. On a second, probably unrelated, note... when I finally said "screw it" and built the mod anyhow, it now crashes the game by making Minecraft think that it is multiple instances of itself, whether I attempt to run it on a server or client-side only. I went ahead and attached a crash report for that, as well. Thanks, all! I wouldn't have been able to get even as far as I have without the community. crash-2019-10-10_03.28.27-server.txt
  2. I fixed that, but it doesn't seem to have actually changed anything. My slabs still behave as though they were full blocks, creating an annoying levitation effect, displayed here. Correspondingly, I still am not able to place slabs upside down. If it helps at all with diagnosis, when I dig down and attempt to place two slabs in the hole, it glitches a window in the world through which you get a spectator mode view.
  3. Oh, good heavens. Well, as usual, it's my own stupidity getting in the way. Thanks for pointing out that glaringly obvious fact that I somehow failed to see as I was checking and re-checking my code. I feel really stupid right now. For my next inevitably stupid question... I have the slabs working, mostly, but it doesn't seem to be possible to place an upside down slab. I'd assume that that has something to do with my getMetaFromState function, but everything seems to be in order there. Despite the fact that I'm sure it isn't.
  4. To my pleasant surprise, I was actually able to get my code up and running without crashing the game right off the bat. To my less pleasant surprise, the block I was attempting to create didn't seem to actually exist. Even give commands return an error message informing me that such a block could not be found. Yet, insofar as I can tell from the logs, the block is, in fact, registered. Were it an issue with the model or blockstate files, I would have expected to see the pink checkerboard of doom. As is, though, the block simply doesn't seem to exist anywhere in the usable game registry. My workspace data can be found at https://github.com/OrangeySnicket/CosCraft-Mod/tree/WIP/workspace/InvestitureMod. The block in question is AshTiles. Any help would be appreciated.
  5. ?‍♂️ Thanks... I feel really stupid. For whatever reason, I assumed that since I was only using block as a standin to give me a state, I didn't need to actually give it a registry name. Thank you all so, so much. Hopefully this understanding will transfer over nicely to slabs and I'll be able to work those out without incident. First, though, I need to get my textures working properly... Should be pretty easy. Seriously, so, so much thanks.
  6. Here's the crash report. I'll begin stepping through now. Thank you so much for bearing with me! crash-2019-09-16_21.50.25-client.txt
  7. I... think so. My rewritten code now looks something like this: public static void registerBlocks(Register<Block> event) { Block block; event.getRegistry().registerAll( new AluminumBlock().setRegistryName("aluminum_block").setTranslationKey(Investiture.MODID + "." + "aluminum_block"), new ZincBlock().setRegistryName("zinc_block").setTranslationKey(Investiture.MODID + "." + "zinc_block"), block = new BronzeBlock(), new BronzeStairs(block.getDefaultState()).setRegistryName("bronze_stairs").setTranslationKey(Investiture.MODID + "." + "bronze_stairs") ); with this as my constructor: public class BronzeStairs extends BlockStairs{ public BronzeStairs(IBlockState modelState) { super(modelState); setCreativeTab(Investiture.INVESTITURE_TAB); setSoundType(SoundType.METAL); this.useNeighborBrightness = true; } } However, this continues to crash my game (according to my crash reports) as soon as I reach the event.getRegistry.registerAll statement.
  8. I hope it doesn't seem like I want too be spoonfed too much, I really am trying here, but I still just don't get what you're trying to say. My initial thought was that I was supposed to create a whole new function that uses the registerBlock(event) method and use that to instantiate the stairs. I next guessed that maybe you meant me to register all the regular blocks first as I am, then use the bronze block from there as my base. Neither of these worked, nor have a couple of other strange interpretations I've attempted. Is that intended to be its own module or to go inside one of the functions I've already created? And, either way, should any of those be curly brackets? Seriously, so sorry for not figuring this out more easily.
  9. So... sorry, I'm super new at this. Started learning Java last week. When you say to store the value locally, which value do you mean? The registry number? A metadata value? What would your solution look like?
  10. Ah... Point. I do need to grab some sort of IBlockState, though, yes? Everything I saw seemed to agree on that, more or less. How would I do that with everything still being null? Or is there simply a better way?
  11. For the mod I'm creating, I need to create several different stairs and slabs. I've read that the stairs are easier, so for now they are my focus. I've followed through a couple tutorials as well as correlated with other mods, but I can't seem to get my stairs to function properly. Every time I attempt to run the JDK, the game crashes citing an error at line 30 of my event subscriber, where I begin to deal with the stairs. Do any of you have any ideas? Code can be found at https://github.com/OrangeySnicket/CosCraft-Mod/tree/WIP/workspace/InvestitureMod/src/main/java, with logs and crash reports only a couple directories up. There are a lot of blocks there, but the one I've chosen to start with is Bronze Stairs. Thanks in advance!
  12. From what I've seen, this seems to be a decently frequent recurring problem. I've tried other solutions I've seen on here, such as making sure that the registration calls the right file path and verifying my JSONs (prior to those attempts, I wasn't even getting textures while placed, so progress!) Nothing worked, however, so I'm starting my own thread. First time modding... Code, logs, and everything can be found at https://github.com/OrangeySnicket/CosCraft-Mod/tree/WIP

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.