Everything posted by Animefan8888
-
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 ?
-
Can't create the item (java.lang.NoSuchMethodError)
gradlew build I believe.
-
Can't create the item (java.lang.NoSuchMethodError)
gradlew build I believe.
-
Can't create the item (java.lang.NoSuchMethodError)
I assume the tutorial also had you make an ArrayList of Items just iterate through that list in the ModelRegistryEvent and call ModelLoader.setCustomModelResourceLocation with the proper parameters. Just like you would in the Item class. It looks like you compiled the mod, you can't compile the mod using eclipse, you have to use the gradle file to build your mod.
-
[Help] Get rid of a fake death tamed/labeled mob
Oh, my bad I misread that in the log.
-
[Help] Get rid of a fake death tamed/labeled mob
Well you should report this on their CurseForge Issue tracker. Assuming you have the most up to date version of the mod. There also should have been an Entity called Allegé.
-
How do I make Guis
Read the docs.
IPS spam blocked by CleanTalk.