Everything posted by Animefan8888
-
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.
-
[Solved][1.12.2]How to get a model for a shield
Just how you would any other item...ModelLoader.setCustomModelResourceLocation along with the ModelRegistryEvent.
-
[Solved][1.12.2]How to get a model for a shield
The vanilla shield isn't actually rendered in the normal fashion. It is rendered in TileEntityItemStackRenderer. However you can create your own custom model for it however you want, though it may be a pain to acheive the proper positioning.
-
IFuelHandler deprecated??
@reapersremorse The items damage is actually how much damage the item has taken I believe that when you save and load the world after having the item take 32768 it will either reset to full durability or to having taken 32768 damage. And also if the items damage is ever over 65535 the ItemStack will be considered empty and would then no longer really exist.
-
IFuelHandler deprecated??
That screenshot is of armor and neither of those are the item damage amount.
-
IFuelHandler deprecated??
It's ok, I have done it to.
-
IFuelHandler deprecated??
Packets and network data, as well as saving to disk, and the pure fact that they dont need anything higher than the durability of a diamond pickaxe.
IPS spam blocked by CleanTalk.