Everything posted by Animefan8888
-
[Solved][1.12.2]How to get a model for a block
Post your blockstate json and your updated block code.
-
Features of ore generation in 1.12.2
You will have to make your own version of WorldGenMinable(not necessarily a subclass) that looks for lava pools and then generates your block.
-
Unable to set item in main hand when item breaks
Try setting stack to the new stack instead of setting it via EntityLivingBase#setHeldItem.
-
[Solved][1.12.2]How to get a model for a block
It isn't that it isn't possible, its that it is a bad idea. A TESRs code is called every frame it is rendered and sent to the GPU every frame as well. While a normal model is hatched together with the rest of them and sent to the GPU. Greatly reducing the burden on the machine. Well it is obviously made of cubes since you are using ModelBase. Why not just use a json format for your model. There are plenty of programs to do this and it isn't hard to do yourself. I personally use cubik studios. Blender is an obj model creator if you can use it. And there is obviously Google for this question.
-
How make custom furnace?
TileEntity.register(modis + ":" + name. TileEntityClass)
-
How make custom furnace?
You need to register your TileEntity with TileEntity.register
-
Creating subtitels
Use inheritance, also that method instead of only being called for your items is called for every item, it is just not displayed because you did some type of predicate or if check.
-
Event That Fired When the Player Pickups An Arrow From Ground?
No they are completely different, and ASM is a terrible thing that is not recommended on this forum.
-
Event That Fired When the Player Pickups An Arrow From Ground?
No, reflection allows you to access code that would otherwise be inaccessible, it doesn't allow you to modify a method.
-
Creating subtitels
If they are your Item you should override addInformation in your classes instead.
-
1.12.2 How to make a life steal enchantment by percentage [SOLVED]
It ultimately doesn't matter.
-
1.12.2 How to make a life steal enchantment by percentage [SOLVED]
Is your event registered?
-
[1.12.2] Two questions about modding
I'm not sure what you want, first you say you don't need to do any of the things and tell us not to reply, but then you tag me.
-
How to create GUI with scroll view?
Take a look at GuiContainerCreative, it has a scroll wheel, but it is for slots, but the concept should still be the same.
-
I've imported an external jar, but says no source
The mod was made using MCreator which is a terrible program. Not the normal way with an IDE. Edit: Just to show how terrible MCreator is this is a piece of code generated while creating a Block with it.
-
[1.12.2]Need OBJ model redering toturial # And other problems..
It's a little hard to help when we can't see the code, and if it is a red line underneath the code listen to eclipse for the error and solve it.
-
Solid (impassable) entity
Did you look at EntityShulker? They have the collision you are looking for.
-
Recipes for a Custom Workbench
Try running through the code in your IDE's debugger and see where the code is going awry.
-
1.12.2 How to make a life steal enchantment by percentage [SOLVED]
You're not able to apply your Enchantment Effect in that method. You will need to subscribe to the LivingDamageEvent or LivingAttackEvent.
-
How make custom furnace?
Your TileEntity is probably calling BlockFurnace.setState instead of EmeraldFurnace.setState
-
[1.12.2] Two questions about modding
@H_SerhatY What I suggested may be something you currently don't understand, but it isn't hard to learn. And once you do it you can reapply it later. First in your Items class in the constructor call setHasSubtypes(true) this allows getSubItems to be called in your Items Class Which is the next this to do. So Override getSubItems(CreativeTab NonNullList<ItemStack) and create a new ItemStack of your Item and call addEnchantment(Enchantment, int) on the ItemStack that you created. Finally check if the first parameter is the CreativeTab you wish to add it to, then add your ItemStack to the second parameter. This is the more complicated part, but still not that complicated. You need a new class that implements IRecipeFactory. This will provide you one method. This wants you to return an IRecipe and gives you a JsonContext and a JsonObject. These parameters come from a json file, which is the new way to add recipes to the game. This means you can create your own custom format for a recipe. For further understanding on how to read the data from the JsonObject search for tutorials on GSon, though it is relatively similar to nbt. Once you have your custom format which can derive from the already existing formats, you can create a new ShapedRecipe or a new ShapelessRecipe and that will be what you return in the method, but you will need to create a new ItemStack and add the Enchantment the same way you did earlier, and then pass it into the new ShapedRecipe or new ShapelessRecipe as the result.
-
IFuelHandler deprecated??
Double post.
-
IFuelHandler deprecated??
I have tested it, it goes back to full on reload, and disappears after taking Short.MAX_VALUE * 2 + 2 or 65535.
-
[Solved][1.12.2]How to get a model for a shield
This, it won't look anything like the Vanilla Shield's json except maybe the translations and rotations. Or you could try to give your item a custom TileEntityItemStackRenderer by calling setTileEntityItemStackRenderer in your items constructor.
-
[Solved][1.12.2]How to get a model for a shield
You will have to define your model yourself. I use cubik studios for my Minecraft modeling.
IPS spam blocked by CleanTalk.