Jump to content

Mantoes

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Mantoes

  1. This worked perfectly, thanks a lot for the help
  2. Currently I am just applying an AttributeModifier to one of my items to change through these lines of code (Pulled from actual code because everything around it is irrelevant); //Modifier public static AttributeModifier MAINSP = new AttributeModifier(UUID.fromString("6e1c0233-8b3b-4592-b944-a1756fa62a40"), "HandSpeed", 0.05D, 1); //AttributeModifier adding output.addAttributeModifier("generic.movementSpeed", AMods.MAINSP, EntityEquipmentSlot.MAINHAND); This works, my item now causes me to run faster when held, however it also affects my items attack speed / damage. When applied to a sword, it takes ~20 attacks to kill a zombie, meaning it is doing fist damage, rather than the swords actual damage, along with the attackspeed being the same as my bare fist. It works the other way around, modifying attack speed does not affect movement speed and keeps the correct attack damage Does anyone know what is going wrong here?
  3. Currently I am using the lang file and the default Minecraft text formatting system to add colours to some of my item names. The only issue I have with this system, is that when an item is renamed on an anvil the player can remove the formatting characters around the item name. What would be the best way of preventing this from changing the colour? The two ideas I currently have are use my tooltip handling event to modify the name formatting of the item regardless of its changed name, or when the player edits the item name I add the correct formatting to the beginning and end of their custom name. I am wondering if there is a "more correct" or simpler method to deal with this.
  4. Thanks for the help, I removed the tooltip overrides and started using the event, it seems to be working.
  5. Currently I am using custom classes for each of the tool types, and in each one I have an override for two methods, book enchantability and tooltip. The overrides are very simple, but there is something bothering me. Currently each tool class has its own two overrides with the exact same implementation. Is there a way to override all tools with just 1 file? I just want to make it easier for me to implement generic changes to all tools without having to repeat it for each tool type.
  6. Before I explain, I need any help I can get so if it is not for 1.15.2 that is fine, I just need a better point to start as I am currently very lost. My current goal is to increase the base world height to ~128 rather than 64. Meaning that world gen would be roughly unaffected (if possible) but the stone/cave layer is about 64 blocks taller. To clarify, just because every post about this is misunderstood, I DO NOT want to increase the maximum build height, that should stay at 256. The goal is to have more stone that can be split into layers, which I have already managed to do, except with layers of ~32 it doesn't leave much room for satisfying exploration or mining, Edit: Changed MC Version
×
×
  • Create New...

Important Information

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