Everything posted by Animefan8888
-
Way of rendering an image above a block in 3d space?
Use the RenderWorldLastEvent to do that.
-
[1.11.2] [solved] Need help with 3x5 crafting
Have you tried running it through your IDEs debugger? Or even adding some printlns?
-
NBT integer var update wrong
When the world is loaded TE's have readFromNBT called and if the tag doesn't exist then it will return a default value for numbers that is 0. And then when the world will call writeToNBT at certain points and then save the tag making it exist, but it will be set to 0 because it was read as 0. So to check if the tag is there use NBTTagCompound#hasTag(String)
-
Mob Not Rendering Held Item
Where did you register the renderer?
-
My Mod isn't showing up whenever I run the Forge Client
You need to edit the run configurations and go into the classpath and add your project, or you have put your mod in the improper place in the forge project so it is not loaded.
-
What do I need to know before I try to make a power system
The building of a system, you need to know how your energy will work. Is it going to be pipe based or wireless? If it is pipe based you need to know how to transfer that energy between pipes, will you store it in a single pipe, if you have pipes connected from one place to another and break one connection in the middle what happens, how do you separate the pipe system? If you plan on it being wireless how will you send it, in an area, through whitelisting, or through the player like extra utils?
-
FIXED :Cant Get Living Entity To display gui
What you need to do is in your processInteract method when you call openGui instead of passing an x position you should pass getEntityID(). Then when you construct your Container and Gui pass World#getEntityBy/FromID(x)
-
Permanent Health Boost
Apply a AttributeModifier to the Player using EntityPlayer.addAttributeModifier (or similar method name).
-
Cross-mod compatitility
You can create a new ToolMaterial field using EnumHelper.addToolMaterial
-
[1.11.2] Changing bonemeal behavior
Look at the method in the class it belongs to. The comments above the method are known as the javadoc.
-
[1.11.2] Changing bonemeal behavior
Try looking at the Javadoc for the method.
-
[1.11.2] Changing bonemeal behavior
The second state needs to be the one gotten from the world.
-
[1.11.2] Changing bonemeal behavior
I believe the first one and if i am wrong others please correct me.
-
[1.11.2] Changing bonemeal behavior
You will need to mark the block for an update specifically the client. World#markBlockForUpdate (I think that is the name at least it is similar).
-
[1.11.2] Changing bonemeal behavior
No your state, not the IGrowable. In the while loop the state you pass into the method needs to be updated so use the worlds state at the BlockPos.
-
Synchronize temporary Inventory for Trade GUI
I would use packets or somehow set the server side container for both players to the same one.
-
[1.11.2] Changing bonemeal behavior
It gets stuck in an infinite loop at the while because it is using the same state everytime instead you should get the state from the World field and BlockPos field.
-
[1.11.2][Solved] No TE special renderer for tessellating
You never save your boolean value.
-
FIXED :Cant Get Living Entity To display gui
You cant just declare a variable and expect it to not be null. Your te field in your GuiHandler is never initialized so you need to get the Entity somehow. Maybe using some raytracing?
-
[1.11.2][Solved] No TE special renderer for tessellating
When you set the BlockState you will use IBlockAccess#setBlockState(BlockPos, IBlockState). To get the IBlockState you will do Block#getDefaultState() which you will set to something in your constructor, but if you want to use a different value than the default you do Block#getDefaultState().withProperty(IProperty, value). The IProperty must be the same instance you used for setting the Default and the BlockStateContainer, if you do not change the value with a IBlockState.withProperty then it will stay at it's default value. It will decrease if you manually change it in the state, and not change the state though this will only happen on the side you change it on so it is better to do it in the way described above also know as changing the state. I recommend a Forge BlockState JSON for this; read about it here.
-
FIXED :Cant Get Living Entity To display gui
Specifically the hasCapability getCapability the IItemModifiable field, and you will want the readFrom/writeToNBT methods.
-
FIXED :Cant Get Living Entity To display gui
Then what is this? TileEntityBasic
-
FIXED :Cant Get Living Entity To display gui
Please go back and look at your earlier post.
-
Eclipse Debug Mode
Post the eclipse version of the log and not the gradle version please.
-
Adding Container and gui to LivingEnity or LivingEntityBase?
Not a block. Treat your Entity like you would a TileEntity for this.
IPS spam blocked by CleanTalk.