Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

TesserWreck

Members
  • Joined

  • Last visited

Everything posted by TesserWreck

  1. 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.
  2. What class is PlayerTickEvent in?
  3. For right now I was going to apply a speed boost effect.
  4. 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); } }
  5. 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.
  6. 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?
  7. 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?
  8. 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?
  9. 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?
  10. 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.
  11. Unfortunately, I do not know how to do this.
  12. 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.
  13. 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.
  14. 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.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.