Putting enchantments on wrong equipment for bonuses until item/armour breaks

Started by Celestial Pickle on

Topic category: Help with modding (Java Edition)

Last seen on 21:55, 18. Aug 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Putting enchantments on wrong equipment for bonuses until item/armour breaks
Wed, 03/31/2021 - 21:48 (edited)

   I want to create a type of armor tunic (in the 2021 snapshot) that gives the player a bonus of soul speed. It may sound weird, but I need this.

   This feature may need custom coding, and if anyone would help, I would be very appreciated. 

   If this is vague, please ask for more.

Edited by Celestial Pickle on Wed, 03/31/2021 - 21:48
Last seen on 20:42, 1. Oct 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know a way. Instead of…
Wed, 03/31/2021 - 22:10

I know a way.

Instead of actually using soul speed enchant levels, you could make the tunic give speed to player while they are standing on soul soil or soul sand. I can explain further if needed.

Last seen on 21:55, 18. Aug 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! Could you make a…
Thu, 04/01/2021 - 21:39

Thanks!

Could you make a short tutorial on this page that explains this in a bit of detail? I'm sure a lot of other people would need this too.

Last seen on 20:42, 1. Oct 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright I'll try to explain…
Sat, 04/03/2021 - 20:48

Alright I'll try to explain it better

Last seen on 20:42, 1. Oct 2022
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could create a procedure…
Sat, 04/03/2021 - 22:56

You could create a procedure, in this example, I'll call it soul_speed_booster.

In the procedure editor, set the external trigger to be, "on player tick".

Then add an "if" block, and for it's condition, use an "=" block that can fit item data, then grab an empty data block of the same color from the "minecraft components" tab and double click it to set it to your item.

Grab a block that can sense what is in a certain slot of the player or entity's inventory, and put it in the first slot in the "=" block, and put the data block that shows the picture of your item in the second slot.

Then, in the "if" block, put in an "if else if" block. In the conditions for each, put an "=" block that can fit block data.

In the "=" blocks' first slots, put the block you want to detect, e.g. soul sand, soul soil.

In the second slot, add a block to detect the in-game block at certain coordinates, make those coordinates be x, y-1, z.

Then, inside the bodies of both empty "if" blocks, add the "add effect" block, with the effect you would like to apply, e.g. speed, and make the effect ambient and not show particles, set the duration to 1 and the strength to whatever you like.