Everything posted by Animefan8888
-
(Forge API for 1.12.2) Remove lakes in specific biome
Is this your own custom Biome or a vanilla Biome?
-
How to make a block drop different items with different amount
Override the getDrops method in your block class and add the ItemStacks you want to be dropped to the List passed in as the parameter.
-
How to make a block drop different items with different amount
What version are you modding for?
-
getClassFromName().entrySet VS ENTITIES.getEntries()
Step through the code in the debugger.
-
Custom Containers that can generate with Loot?
Make a Block Make a TileEntity Give Block TileEntity Spawn Block in world with tileentity that has its contents determined via loot table.
-
Help with rendering a .obj file to use as an item model
What he means by this is, try to append .obj to the end of your path in the model resource location.
-
Help with rendering a .obj file to use as an item model
?
-
1.12.2 How to make durability loss after crafting?
As stated above, but use the Item#getContainerItem(ItemStack) version. And return a cloned ItemStack with its damage increased.
-
Get Break Particles From A Block
No.
-
Event Working Only In Survival Mode
Oh, well then no you cant use it. I didnt know if it was protected or not.
-
Event Working Only In Survival Mode
No
-
Get Break Particles From A Block
Change this to IBlockState state. Then for the I'd do Block.getStateID(state) The only other thing you need to do after changing those things is spawn the particle in the world.
-
[1.7.2->1.12.2] Vec3 Pool
Using a pool might be a good optimization later. But I don't see a reason for your Vec3 class to store doubles. The values dont ever seem to have decimals.
-
[1.7.2->1.12.2] Vec3 Pool
Maybe not sure. Well in 1.7.10 it was Vec3.createVectorHelper however this doesn't appear to exist in 1.12.2. Maybe it isn't used anymore. What are you using it for?
-
Arrows not always hitting players
He was registering them in a different way than you were. If you register an instance of the class they can't be static, but if you register the class itself or use the @EventBusSubscriber on the top of the class then the methods must be static.
-
How do I make an Entity#onGround method with an offset above that ground.
Can you post this code because this part doesnt make any sense.
-
[ 1.12 - SOLVED] Custom armor models : rendering elements only if full set
Use Minecraft.getMinecraft().player To get an EntityPlayer instance since you are client side only this will work. Then you have to get the pieces of armor that the player is wearing there is a method for it and it takes in a EntityEquipmentSlot parameter.
-
(Stricter) How to apply an enchantment to a specific Item only.
Override canApplyAtEnchantingTable as well.
-
(Stricter) How to apply an enchantment to a specific Item only.
This should work.Can you post more code maybe its something else that is causing it to do that.
-
[1.12.2] ObjectHolder Not Populating Fields
If you put the annotation on the class the field name must match the registry name. IE if the registry name is "block_test" the field name needs to be block_test or BLOCK_TEST.
-
PlayerInteractEvent on Water
No not really, its not that performance intensive to do.
-
PlayerInteractEvent on Water
Sadly not without ray tracing yourself.
-
[SOLVED] Help with collisions
A door is actually too blocks(states). Also we cant help you if you dont post your code, preferably on git or some other code sharing site.
-
Help with custom crops (1.12.2)
You dont have your modid here so it will look under assets/minecraft/... to fix this do modid:fileName Second problem is it needs to be all lowercase.
-
Need Gems, Crystals, and Ores Idea!
This is not what this forum is for. This is a round about way of asking us to write your mod for you. If you need ideas go to a different sub forum or the minecraft forums. If you need a list of Gems ask google.
IPS spam blocked by CleanTalk.