Some questions that I wanted to ask, can you guys help me?

Started by QB on Sat, 04/11/2020 - 17:46

Topic category: Help with modding (Java Edition)

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Some questions that I wanted to ask, can you guys help me?
Sat, 04/11/2020 - 17:46

So there are some questions that I wanted to ask, can you guys help?

 

- First question: How to apply enchantment to a weapon in a certain slot of a player inventory in minecraft after an item is right-clicked?

- Second question: How to summon lightning around the player when a weapon is right-clicked on the ground?

Thanks alot for all of your answers! :)

Last seen on 21:32, 23. Jul 2021
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I really wish that first one…
Sat, 04/18/2020 - 05:49

I really wish that first one was possible, but unfortunately, you can only have the item enchant itself.

As for the second one, though, there's a procedure block in the world management tab that strikes lightning at a specified location. Just make that trigger when your item is right-clicked and you'll be good to go.

Last seen on 15:10, 2. Feb 2021
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thank you!
Sat, 04/18/2020 - 11:56

Thank you!