Skip 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. You can't register them at the exact same time: one will always goes first. Stop passing references to constructors and instead alter the class files to point to your items/blocks lists.
  2. MoveEntity is for moving by an amount, not to a location.
  3. You should try using Step Into rather than Step Over
  4. Use a TextureAtlasSprite and override it's load method and make sure that it gets added to the sprite sheet (subscribe to TextureStitchEvent). Do note that by overriding load you'll end up skipping LOTS of vanilla debug behavior regarding missing/corrupt textures and the game will either crash (in vanilla code), or not behave properly, and you'll be on your own to debug. Here's a TextureAtlasSprite class I wrote once that combines two different .png files during startup. https://github.com/Draco18s/HarderStuff/blob/master/src/main/java/com/draco18s/hardlib/client/TextureAtlasDynamic.java
  5. -

    Draco18s replied to mickedplay's topic in Modder Support
    Well...you're passing the size of the array as the slot index. Of course that's going to be out of bounds.
  6. You're going to have to do some debugging yourself and at least narrow it down to a specific method. We aren't going to download your whole project and load it into Eclipse and do that knowing only the observed behavior.
  7. Post a screenshot of the path for me?
  8. Look at the bed, door, and other two-high vanilla blocks.
  9. The camo block (the router?) needs to not tell Minecraft that it is a full, opaque, cube.
  10. Gimp handles hex values as well. You can copy and paste to that field.
  11. Readability. And the decimal color is just the base 10 representation of the same value.
  12. Colors in decompiled minecraft are in decimal. 171,36,36 would be 11215908. However, you should express your colors in hex. Which would be 0xAB2424.
  13. How about making your own button class? https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/client/gui/GuiContainerOreCart.java#L82-L114
  14. It's spelled "mod" in lower case and without quotes (the quotes in this post are a legitimate use of the punctuation mark). It is not an acronym. Minecraft mod. CustomNPCs mod. One Piece anime.
  15. Is your mod a mod or is it a MOD or only sort of a "MOD" but not really? (Protip: quotes around things mean either speech or saying "it's not really this thing." See: Air Quotes).
  16. Er...yes. Somewhere along the way I got extended state and actual state mushed together in my head. Whoops!
  17. Here's the only work I've done with extended states. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/block/BlockSluice.java#L80 Mind, all that is for calculating water height (but it's treated like any other unlisted property). But it doesn't have a json file associated (the model is runtime). But the principles should be similar.
  18. Yes. You would just be encoding those values in the block's extended state (which is used pretty much only for rendering). That said, with 4 blocks and 4 horizontal directions, there's no need for a TE at all: 4x4 = 16, which is the maximum amount of data storable in metadata.
  19. That depends, what does the console say when you start the game?
  20. There's also no reason not to use .getDefaultState() in the onBlockPlaced method: the itemblock shouldn't ever have metadata associated with it. Also, you allow any facing when the block is placed, and even save that value into metadata. But when reloading the world you enforce the facing to be either UP or DOWN (any other direction gets set to DOWN).
  21. The ResourceLocation class adds the /texture and .png for you.
  22. You didn't declare your block state properties. @Override protected BlockStateContainer createBlockState() { return new BlockStateContainer(this, new IProperty[] {FACING}); }
  23. Well.... You're not calling registerRenders from anywhere You shouldn't be using the ModelMesher for rendering anyway (use ModelLoader.setCustomModelResourceLocation) Your rendering code shouldn't be in common code, it should be in your client proxy You have several spots where you're using the wrong character (you appear to be using something from UTF-8 not ASCII when ASCII is required). Namely in your @Mod annotation and here: ModHD1Items(String unlocalizedName, String registryName){ //why aren't these two lines ended with ; ? this.unlocalizedname=unlocalizedName%3B this.registryname=registryName%3B } Why are you using item.getUnlocalizedName().substring(5) ? Use getRegistryName like you're supposed to

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.