Help Creating Entity Deflecting Mod

Started by RamenFan03 on

Topic category: Help with modding (Java Edition)

Last seen on 13:34, 19. Aug 2023
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help Creating Entity Deflecting Mod

I wanted to create an armor enchant that bounces entities back when they hit the player (e.g.: arrows are deflected and bounce backwards, and mobs/players are bounced backwards if attacked via melee), however, I could not find the "Get item from armor slot (0) of (Event/Target Entity)" block. I could find a "Get a copy of item from slot (0) of (Provided Itemstack) if it has inventory" block. However, I could not place the "(Event/Target Entity)" block inside the second slot, and I am unsure how to specify the slot because it doesn't specify armor, main hand, off-hand, etc. and I want to have it for any armor and shield. Am I missing something, or is there another way to do so?

I tried watching the YouTube tutorial found at https://www.youtube.com/watch?v=HpIgP_puEGI. However, as the statement above says, I could not find the same block that they used in the tutorial. I'm not sure if updating MCreator will make a difference with my current issue or not, but as of right now, I am on 2022.1.

Last seen on 13:34, 19. Aug 2023
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
After doing a little bit of…
Fri, 08/18/2023 - 12:21

After doing a little bit of research, I was able to find the slot IDs, however I am still unsure about the "(Event/Target Entity)" block.

Last seen on 13:34, 19. Aug 2023
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Never mind then, was looking…
Fri, 08/18/2023 - 12:26

Never mind then, was looking in the wrong spot for the block I needed. It was in Entity Data and not Item Management.