Enchantment not triggering

Started by Hacinson on

Topic category: Help with MCreator software

Active 2 years ago
Joined Oct 2023
Points:
200

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
Enchantment not triggering

Hello, i am trying to make enchantment that will have % chance of absorbing all incoming damage from mobs/players AND dispplay certain thing when successfuly absorbed.

Today i was testing it but it seems that it does not work. Can anyone with more experience look at it and tell me what i did wrong? 

Thanks

 

Enchant procedure: https://pasteboard.co/uVS2ZvYkxbqZ.png

overlay procedure: https://pasteboard.co/SQ6M5Mhn2ATL.png

 

note: i made global logic variable to store the info about if enchantment successfuly absorbed damage and then display overlay, during the tests i neither absorbed damage nor i seen my overlay pop up

 

Active 6 months ago
Joined May 2023
Points:
404

User statistics:

  • Modifications: 3
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 107
try changing to "get slot"…
Sun, 10/15/2023 - 21:40

try changing to "get slot" thingy to 3 instead of 2, it should work

Active 2 years ago
Joined Oct 2023
Points:
200

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1
sorry for super super late…
Sat, 10/28/2023 - 07:51

sorry for super super late reply but i have work

anyway it's still not working, any other idea?

Active 3 months ago
Joined Oct 2023
Points:
218

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 27
I think slot 2 was right,…
Sat, 10/28/2023 - 08:29

I think slot 2 was right, anyways

use the block with inventory i think it is (somewhere in entity or player data) as that block you use only works if they have inventory open atm.