Everything posted by Animefan8888
-
InvocationTargetException on Windows (no mods)
I've got no idea, maybe @diesieben07 could shine more light on this.
-
Best Way to Give Blocks "Health"
He means a Map<Short, Float/Integer>
-
Best Way to Give Blocks "Health"
NBTTagCompound#getKeySet OR you could use an NBTTagList which may be easier.
-
Best Way to Give Blocks "Health"
Use an NBTTagCompound or an NBTTagList
-
Best Way to Give Blocks "Health"
No No, use the default NBT stuff, you can convert the BlockPos to a string and use that as the key for the health value, either by directly changing the xyz to some string and parsing it, or by converting it to a long via BlockPos#toLong and converting that to a string.
-
InvocationTargetException on Windows (no mods)
Don't use the Windows installer, use the jar one.
-
Best Way to Give Blocks "Health"
No, you could create a Map<BlockPos, Float/Integer> which will map a x,y,z to a health value.
-
[SOLVED] [1.12.2] Opening a container from the player's inventory, part 2
Two things, you never load the IItemHandler capability with your ItemStacks. And second of all you need to pass your IItemHandler ItemStacks to your block when you place it.
-
Minecraft Crashes on Loading BlockSlab?
Double Post
-
Minecraft Crashes on Loading BlockSlab?
Could you imagine supporting all of the versions of forge? Theres a lot of them, and thats a lot of changes. The minecraft forums would support it.
-
How to override vanilla ores spawning
MinecraftForge.ORE_GEN_BUS.register(target);
-
How to override vanilla ores spawning
Subscribe to the OreGenEvent.GenerateMineable and set the result to deny. And create your own world generator to generate the ores and register it with GameRegistry.registerWorldGenerator
-
[1.12.2] Problem with OBJ Model rendering
Is the model going to be animated? If not dont use a TESR use the normal model system, forge adds support for obj models.
-
Finding the item of the user in onLivingHurtEvent
Entity can be cast to EntityLivingBase or EntityPlayer, which has those methods. Also you should use an instanceof check.
-
Finding the item of the user in onLivingHurtEvent
Returns an Entity, getHeldItemMainHand is a method in EntityLivingBase.
-
Finding the item of the user in onLivingHurtEvent
Your comparison will still not be true. This would still work...that method still exists.
-
[1.12.2] Using Minecraft's Tessellator and BufferBuilder
You put vertexes into it and that creates a face, which is assigned a texture via the points you specify as floats as a 0-1 scale by the bound texture. Which is bound from Minecraft.getMinecraft().getRenderManager().renderEngine.bindTexture(resource); Or an instance of RenderManager/TextureManager that you are provided. You call BufferBuilder.begin(VertextFormat) then bufferbuilder.pos().tex().normal().endVertex() for all of the vertexes you need. Then finally call tesselator.draw. If you need an instance of these, use Tesselator.getInstance() and then to get the BufferBuilder instance use Tesselator#getBuffer().
-
Best Way to Give Blocks "Health"
No, you cannot.
-
Best Way to Give Blocks "Health"
If you are dead set on this idea you will have to create a BlockPos to int Map kinda thing and save it to the world yourself.
-
[1.12.2] Custom player inventory
Yes that is the appropriate way. Create a Gui class that extends the one the Players inventory uses. You dont need to make packets unless you wanna do something special. Minecraft already has packets for inventories.
-
[1.12.2] Using Minecraft's Tessellator and BufferBuilder
This doesnt support OBJ models.
-
[1.12.2] Custom player inventory
Those are all handled automatically with the vanilla stuff.
-
Can't create the item (java.lang.NoSuchMethodError)
Its in the libs folder in the build folder
-
Can't create the item (java.lang.NoSuchMethodError)
I didn't see this message. Could you post a picture of your folder?
-
Can't create the item (java.lang.NoSuchMethodError)
Not on my screen ?
IPS spam blocked by CleanTalk.