Started by
damiansb
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, guys.
I'm looking for a way to increase the damage of my vanilla crossbow (double it) when I'm using a specific piece of armor.
I already know how to create some effects on player tick when I'm using a specific armor, but I don't see a way to increase the damage of the crossbow by triggering a potion effect, for example... Since I think there's not a way to do that with potions in the current state.
Anyone have any idea?
I do not think that is possible at the moment without custom code. One alternative I could think of is to add a new type of bow that switches to a different projectile or makes more projectiles when that effect is active. I hope that helps.
You could add extra damage when an entity is attacked.
If the player has the armour piece and a crossbow in the main hand deal 4 damage to
receiving entity.
Hi. I don't know if you managed to do this. But in the newer MCreator versions (i believe is here since some updates), there's a dependency in the "Entity Attacked" global trigger called "amount". This dependency contains the amount of damage dealt/received on the entity. You could use a "Set health of entity" or a "Deal damage to entity" and use the amount x 2 to calculate a 100% damage increase on each attack. The problem with this is that i think the melee hits with the crossbow will also have this bonus, but since it deals 1 damage on melee i think this will not be a serious problem. I think you can use "immediate source entity" to tag Arrows or projectiles to solve this, but i don't know how this block works. Hope you understood and also hope this helped :)
Mariano Argüello can u pls show me a screenshot of this "amount" block in procedures list, please?
not the first time i read about it, but never found something like that to boost damage in precentage.