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. ...which will then probably make you write writeToNBT and readFromNBT methods. (Protip: an interface never lets you avoid implementing something)
  2. I heard that from diesieben07, if he's wrong then the information I have available to me is wrong and there's no way I'd know that.
  3. Override public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) Get the TileEntity Get the block stored in the TE Ask it what it's icon is
  4. If it's in the Block class and you're overriding it, then @Depreicated doesn't mean "we're not using this any more." Mojang is using the annotation incorrectly.
  5. I would store the block inside the TileEntity and then get the TileEntity from world.getTileEntityAt
  6. Yeah, no shit. Creating a new biome instance is not the same as referencing an existing instance.
  7. After running gradlew build, you need to browse to build/libs to find your jar file. One of those other two commands likely deleted it.
  8. http://www.sololearn.com/Course/Java/
  9. See all this stuff? private boolean isAdv = false; private Block block; private TileEntityElevator tile; You can't do that. Blocks are singleton classes. You must store this information in the TE. You should never ever be storing a reference to the TileEntity in your block class either, that already tells you you have no idea WTF you're doing. Also, don't use BlockContainer. Override hasTileEntity and createNewTileEntity instead. Also... public TileEntity createNewTileEntity(World p_149915_1_, int p_149915_2_) { try{ return new TileEntityElevator(); }catch (Exception var3){ throw new RuntimeException(var3); } } WHY ARE YOU DOING THIS. You catch an exception for the sole purpose of throwing it again? Why? Not to mention that creating a new TE can't even throw an exception!
  10. If the raycast hits with distance 5, then its guaranteed to hit if the distance is 6 instead. However, it is not guaranteed to hit if the distance is 4...
  11. You need to show more of the class, then. Post the whole thing.
  12. Isn't that what Ernio showed via PlayerEvent.Clone? I missed that.
  13. Also, you will need to manually copy the capability on respawn. The respawned EntityPlayer is a new instance.
  14. Mmm. You've posted the same code again along with a bunch of words. It doesn't help me figure out why you're not using this.block.getIcon(side,meta); Yes, I skipped the "else" statement, but whatever. I still don't know what the "problem" you're having even is.
  15. Well of course it still crashes. Inside the loop you're doing a raytrace at increasingly shorter distances. What do you think happens when that raytrace doesn't hit something?
  16. @SideOnly(Side.CLIENT) public IIcon getIcon(int side, int meta){ if(this.isAdv && this.block != null){ return this.block.getIcon(side,meta); //why not this? } } ?
  17. Is the method onItemRightClick marked as @SideOnly(Side.CLIENT) in the Item class?
  18. While....vaguely correct, you shouldn't use the unlocalized name for your json. You should use your registry name for both of those.
  19. Honestly, store the rotation in metadata, then store the rest in the TE. (2 bits for fabric, BTW, is 4 colors)
  20. I think the bit you're missing, NovaViper, is line #4 of that json: https://github.com/TheXFactor117/Lost-Eclipse/blob/1.10/src/main/resources/assets/losteclipse/loot_tables/entities/tables/entity_common_loot.json#L4
  21. You need to check the block under the grill. Also, you have a TON of copy-pasted shit you absolutely don't need. Like, private static final String __OBFID = "CL_00000357"; which just shows everyone else that all you did was copy-paste the entire furnace class. You also didn't use the [ code] tag when pasting your code. Now it's borderline unreadable because there was an [i] in it.
  22. 1) 1.7.10 is super outdated. 2) Yes, search the forum for posts from me with the text "TextureAtlasSprite." Alternatively, http://www.minecraftforge.net/wiki/Multiple_Pass_Render_Blocks
  23. And then multiply by any value you want to make it go faster/slower.

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.