Everything posted by TesserWreck
-
Custom Vanilla Item Enchantment
I managed to get it working by following this tutorial: www.youtube.com/watch?v=siiEYV2pXE0 I didn't see that there was a follow up video to the previous one.
-
Custom Vanilla Item Enchantment
What class is PlayerTickEvent in?
-
Custom Vanilla Item Enchantment
For right now I was going to apply a speed boost effect.
-
Custom Vanilla Item Enchantment
I did manage to get it to find the armorType value, still don't know about the event. package com.twreck.stride; import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnumEnchantmentType; import net.minecraft.init.Items; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; public class EnchantmentStride extends Enchantment { public EnchantmentStride(int id, int rarity) { super(id, rarity, EnumEnchantmentType.armor_feet); this.setName("Stride"); } public int getMinEnchantability(int par1) { return 5 + (par1 - 1) * 10; } public int getMaxEnchantability(int par1) { return this.getMinEnchantability(par1) + 20; } public int getMaxLevel() { return 3; } @Override public boolean canApply(ItemStack stack){ return stack.getItem() instanceof ItemArmor && ((ItemArmor)stack.getItem()).armorType == 3 ? true : super.canApply(stack); } }
-
Custom Vanilla Item Enchantment
I know about the onArmorTick event, but I can't put that in a class that extends Enchantment. I did check for an instance of ItemArmor, but I don't know how to compare that instance's armorType value.
-
Custom Vanilla Item Enchantment
That worked and I can enable it for specific items, but now I have two more questions; how would I apply it to a group of items(i.e. all helmets) and where do I put the code that makes the enchantment actually do something?
-
Custom Vanilla Item Enchantment
I am relatively new to Minecraft modding so I decided to create a custom enchantment. I have looked over several tutorials and they do show how to create an enchantment and apply it to a custom items, but I want my enchantment to be applied to the standard Minecraft items. Does anyone know how I would go about doing this or if there is a guide/tutorial that describes this?
-
Vanilla block behavoir
In that case, how do I set a custom block to override a current one? Do I just set the block's ID to be the one I want to modify?
-
Vanilla block behavoir
This worked for the texture problem, now I just need to remove the particles that come off of it. I took a look at BlockTorch.java and at the bottom (lines 281-320), it describes how they are generated. Is there a way for this section to be disabled/skipped?
-
Vanilla block behavoir
I just found out I can use Block.(blockname).setTextureName("name") to set the texture of a block, but I don't know how to make my file see my texture as the "name" section only seems to work with the preexisting textures.
-
Vanilla block behavoir
Unfortunately, I do not know how to do this.
-
Vanilla block behavoir
Not exactly, my plan is to make it so that when you craft a vanilla torch, it is not lit, and I will a block to the mod which is lit and will slowly loose light value. I know how to remove the current light level, now I just need the aesthetic part.
-
Vanilla block behavoir
I was hoping just to change a texture to a custom one I made and add/remove some particle effects. Specifically, I want to change the torch to use a texture that is not lit (I made it already) and have no particles coming from it.
-
Vanilla block behavoir
I am new to modding in Minecraft, and I was looking for some help with a mod I am trying to make. I want it to modify the behavior of a vanilla block, but all the tutorials I have seen are about creating custom blocks. I was wondering if someone could point me in the right direction. It would be nice if there was a tutorial that focuses on this.
IPS spam blocked by CleanTalk.