Everything posted by Animefan8888
-
[1.10.2] [SOLVED] Obtaining an int[] of the player's skin ingame
You can use Reflection to access this private field.
-
[1.10.2] Problems with TE and GUI
I didn't see a register call for your GuiHandler you need to do NetworkRegisty.INSTANCE(instance()).registerGuiHandler(...);
-
[1.10.2][SOLVED] TESR not rendering entities
Did you register the renderer?
-
[Solved] 1.10.2 Randomised Tool Material
You will have to write the data the tool material stores to nbt and read the data from nbt in the methods that call for them.
-
Damage subject
Call damageItem instead
-
[1.10.2] ItemStack from BreakEvent
Do you mean a new ItemStack?
-
[1.8] [Solved] methods #onEntityWalking #onEntityCollideWithBlock
Could you fix your post? I think you typed inside the quote.
-
[1.10.2] Render block at a different place
Im pretty sure it needs to be an entity or something that can store data and move
-
A way to add Mojang's new variants in the future, along with ours ?
I would say put your "Enums" first then Minecrafts, and hopefully MInecraft won't change the order.
-
1.10.2 seting up keybinding
Then you didn't do it right. Do you ever call load()?
-
1.10.2 seting up keybinding
What?! And What?! Sorry i am a bit sleepy i meant to say did i do this right. i am trying to register a keybinding The best way to check is does it work in the game? (Does it appear in the keybindings menu?)
-
1.10.2 seting up keybinding
What?! And What?!
-
[1.8] [Solved] methods #onEntityWalking #onEntityCollideWithBlock
That means you aren't overriding a method (method signature doesn't match anything). You need to go look at the parent class to determine what the new signature is. I don't see that method #onEntityWalking in 1.8 Why is the #onEntityCollidedWithBlock is not working for me in 1.8? in 1.7.10 instead of the BlockPos parameter, it was x, y, z but I did not change anything else? Sry to bother you but I'm sure this is something pitifully simple I'm just f---ing missing it Block#onEntityWalk(World worldIn, BlockPos pos, Entity entityIn) and Block#public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn) (Which is only called when the entity is within the collision bounds).
-
[1.9] Spawn a custom mob in villages
Call VillageRegistry#addExtraVillageComponents(...) Which takes in a list of StructureVillagePieces#PieceWeight which takes in a StructureVillagePieces#Village which has a spawnVillagers method inside of it. This will allow you to add to the structure of villages and spawn in your Entity.
-
[1.10.2] ItemBlock not working in game
Do you use ModelLoader.setCustomModelResourceLocation(...) in preInit?
-
[1.10.2] Getting entities within area
So you have a MovingObjectPosition? Then it is as simple as MovingObjectPosition#.entity(Hit) != null then you have an entity. If not you should get one from rayTracing
-
[1.10.2] Getting entities within area
I think what you are looking for is a MovingObjectPosition which is basically a vector that holds the hit Block or Entity. World#getEntitiesWithinAABB...() is for splash damage (splash potions or AOE sword swings).
-
Player Capability field allowEdit
If it is placing a block you should otherwise you do not need to.
-
Why would forge source disappear from all my Eclipse projects simultaneously?
Your computer only holds one forge source per version (for obvious reasons), but I don't know what would have caused this error. That at least explains why it would mess up all of them.
-
[1.8.9] What is the 1.8.x equivalent of IChunkGenerator from 1.9/1.10?
If you implement IWorldGenerator it will show you what the method should be assuming you are using an IDE like eclipse.
-
Projectile entity floats in the air when it hits a block
Try rendering your spear instead of the arrow because I am assuming that your spear is bigger than the arrow.
-
What am I supposed to name my texture files?
Well did the textures load? Were there any errors in the log? warnings in the log?
-
Player Capability field allowEdit
I know it is used to see if the player can edit Blocks in Adventure mode I don't know about what draco18s said.
-
Minecraft [1.10.2] Cusome Menu Need Help
I would make a int that determines which one is selected and render it based on that.
-
Mob attack all other mobs but not itself.
You will have to create a new AI similar to AINearestAttackableEntity.
IPS spam blocked by CleanTalk.