1

Need help for a magic item!

Undwa8's Avatar Undwa86/16/19 5:43 am
1 emeralds 134 2
6/19/2019 4:38 am
Undwa8's Avatar Undwa8
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's Avatar
Undwa8
Level 13 : Journeyman Lemon
3

Create an account or sign in to comment.

2

2
06/18/2019 1:30 am
Level 1 : New Network
KCSharkifnYT
KCSharkifnYT's Avatar
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!
1
06/19/2019 4:38 am
Level 13 : Journeyman Lemon
Undwa8
Undwa8's Avatar
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
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome