Entity procedure not working correctly

Started by GreenEnvy on

Topic category: Help with MCreator software

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity procedure not working correctly
Wed, 04/16/2025 - 00:53 (edited)

I need some help with an enchantment I'm currently working on. The two procedures for the custom enchantment are as follows:

1st procedure; When a bow or crossbow is in your main-hand, and has said enchantment on it, it will set a custom global variable to 'true', otherwise, as 'false'.

2nd procedure; if the entity shot from the enchanted bow/crossbow is an arrow, the global variable set to true, and the arrow is on ground, the arrow explodes.

However, when I try and use this enchantment, it doesn't work at all. Here are some screenshots of the procedures: https://imgur.com/a/LQ0BOOv

I don't really know what went wrong, so I'd really appreciate some help ^-^

Edited by GreenEnvy on Wed, 04/16/2025 - 00:53
Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know much about…
Wed, 04/16/2025 - 06:28

I don't know much about projectiles, but I get the feeling the problem might be that the game doesn't not recognize arrows as "on the ground" even if it has hit the ground. I can't really think of a solution, but maybe look up a tutorial on how to make a trident, I saw one in my recommendations, and they have to had figured a way to detect when the trident hits the ground.