How to connect event/target entity to the tag in a seperate "do" tab

Started by emilee20111 on

Topic category: Help with modding (Java Edition)

Last seen on 01:51, 30. Mar 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to connect event/target entity to the tag in a seperate "do" tab

 

 

Trying to get horse entities to drop brown carpet as poop, which worked fine in only a few blocks of "code" until I realized the carpets were replacing blocks above ground. Playtesting it gives me the idea that the bottom few xyz position's event/target entity are targeting the player himself and not the horse tag/horse entities. How do I connect the bottom few event/target entity with the upper block that introduces the horse tag? What I'm trying to do is to get the carpet to place directly under the horse but also not replace any blocks at the same time. Any help at all is greatly appreciated, this damn thing has sucked up hours of my time lol

Last seen on 17:02, 25. Jun 2024
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Are we ok about your code is…
Fri, 04/29/2022 - 18:50

Are we ok about your code is saying :

If entity = horse

=> deal no damage to him

Else if (so if entity isn't horse) block at entity position = air

=> wait 20 ticks and at the end of the 20 ticks place a carpet at entity position

_________

If yes, the carpet don't look if the block is air when it is placed but 20 ticks before. So first wait 20 tick and second : look if block is air.

I'm not very good ar English and hope I answered your question (thank google translate :-) )