Everything posted by Draco18s
-
[1.10.2] what's the purpose of INBTSerializable?
...which will then probably make you write writeToNBT and readFromNBT methods. (Protip: an interface never lets you avoid implementing something)
-
[1.7.10] Updating a Block texture
?
-
[1.10] 1.10 Changes
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.
-
[1.7.10] Updating a Block texture
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
-
[1.10] 1.10 Changes
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.
-
[1.7.10] Updating a Block texture
I would store the block inside the TileEntity and then get the TileEntity from world.getTileEntityAt
-
[1.10] Set biome at position?
Yeah, no shit. Creating a new biome instance is not the same as referencing an existing instance.
-
Compilied mod not appearing in build folder
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.
-
[1.7.10] Updating a Block texture
http://www.sololearn.com/Course/Java/
-
[1.7.10] Updating a Block texture
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!
-
[Solved] Error With Particles
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...
-
[1.7.10] Updating a Block texture
You need to show more of the class, then. Post the whole thing.
-
Player nbt not saved after death [1.9.4-1.10.2]
Isn't that what Ernio showed via PlayerEvent.Clone? I missed that.
-
Player nbt not saved after death [1.9.4-1.10.2]
Also, you will need to manually copy the capability on respawn. The respawned EntityPlayer is a new instance.
-
[1.7.10] Updating a Block texture
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.
-
[Solved] Error With Particles
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?
-
[1.7.10] Updating a Block texture
@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? } } ?
-
[Solved] Error With Particles
Is the method onItemRightClick marked as @SideOnly(Side.CLIENT) in the Item class?
-
[1.8] Block Face Direction (MrCrayfish Model Maker)
While....vaguely correct, you shouldn't use the unlocalized name for your json. You should use your registry name for both of those.
-
[solved] Just looking for an idea to implement tent block.
Honestly, store the rotation in metadata, then store the rest in the TE. (2 bits for fabric, BTW, is 4 colors)
-
[1.8.9] Catching all events for new Event system.
- [SOLVED][1.9.4/1.10.2]Issue with LootTables
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- 1.7.10 Need Help with custom furnace - Fuel & Gui (Files Updated)
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.- [1.7.10] Making a Block Overlay
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- How to get mouse wheel listener on gui?
And then multiply by any value you want to make it go faster/slower. - [SOLVED][1.9.4/1.10.2]Issue with LootTables
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.