Giter Club home page Giter Club logo

Comments (7)

ZsoltMolnarrr avatar ZsoltMolnarrr commented on May 28, 2024

Hello!
I am unable to reproduce this mod in any of my development or production environments.
This is most likely caused by another mod.

It would be greatly appreciated, if you could pinpoint which mod causes these symthomps.

from projectiledamage.

ZsoltMolnarrr avatar ZsoltMolnarrr commented on May 28, 2024

Bump, update please!

from projectiledamage.

zaeonNineZero avatar zaeonNineZero commented on May 28, 2024

With more testing, it seems that this problem is likely from using CraftTweaker to add the projectile damage attribute to the modded bows, without "add_default_attributes_for_unspecified_bows/crossbows" enabled. More specifically, the problem occurred when adding the attribute to the bows and crossbows added by Easy Steel, which release arrows at higher than normal velocity.

I need to do more testing to further isolate the issue, as it's possible that the root of the problem lies with one or both of those mods rather than with Projectile Damage Attribute.

from projectiledamage.

zaeonNineZero avatar zaeonNineZero commented on May 28, 2024

I did some further testing and isolated the problem down to a combination of CraftTweaker and Property Modifier as the main culprits. If I had to guess, Property Modifier is interfering with attribute refreshing when reloading the CraftTweaker script, thus messing up the damage without the attribute appearing to change.

from projectiledamage.

zaeonNineZero avatar zaeonNineZero commented on May 28, 2024

Here's an excerpt of the CraftTweaker script I was running when I found the issue. I also posted it in Property Modifier's issue tracker as well.
import crafttweaker.api.entity.attribute.AttributeOperation; import crafttweaker.api.entity.equipment.EquipmentSlot; <item:easy_steel:steel_bow>.anyDamage().addGlobalAttributeModifier(<attribute:projectile_damage:generic>, "Steel Bow", 5.4, AttributeOperation.ADDITION, [<constant:minecraft:equipmentslot:mainhand>,<constant:minecraft:equipmentslot:offhand>]);

from projectiledamage.

ZsoltMolnarrr avatar ZsoltMolnarrr commented on May 28, 2024

I think you need to specify a hardcoded UDID for the attribute modifier, otherwise it can be applied multiple times.

from projectiledamage.

zaeonNineZero avatar zaeonNineZero commented on May 28, 2024

That was exactly the problem, I copied the UUID from the Bow's default attribute and used that in my CT script and the issue went away. So this issue is now resolved.

from projectiledamage.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.