1

Need help for a magic item!

Undwa8 6/16/19 5:43 am
158
6/19/2019 4:38 am
So, I'm actually developing a map and I want to create an item that works only with commands (no mods) :

- When you have the item in main hand, you're granted a small Strength buff
- When you right-click the item on the ground, a massive explosion is created at your coordinates (killing you btw) and the item is consumed.

I remember I need to use some scoreboard trick for the Strength buff, but I forgot which one, and I absolutely don't know how to test if the player right-clicks with the item in hand. Can someone help me to find out what commands must I use please?
Posted by
Undwa8
Level 13 : Journeyman Lemon
3

  Have something to say?

JoinSign in

2

KCSharkifnYT
06/18/2019 1:30 am
Level 1 : New Network
Well, it depends on what version you're in. If you're in 1.9-1.11, you can go to this site to create the strength with the "generic.attackDamage" modifier. Then go to this youtube video to learn about Right Click Detection with command blocks. If I can help you any further, feel free to message me anytime!
2
Undwa8
06/19/2019 4:38 am
Level 13 : Journeyman Lemon
Don't worry, I've the mod that allows modifying the data values. And I also figured out how to do the click detection... but thanks anyway
1

Welcome