Why doesn't this procedure work?

Started by Wabbaka on

Topic category: Help with modding (Java Edition)

Last seen on 04:50, 24. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Why doesn't this procedure work?

this procedure should play a sound if a block from a tag replaces another block from a tag when RMB is pressed

Last seen on 10:38, 22. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The 'random block from tag'…
Mon, 04/08/2024 - 11:17

The 'random block from tag' procedure selects a random block from the tag, it doesn't count as all blocks from that tag. What you want to check is if the item in the main hand of the entity is tagged in tag_allblock, using the 'is block tagged' function.

Last seen on 04:50, 24. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It doesn't put "is block…
Mon, 04/08/2024 - 13:25

It doesn't put "is block tagged " into the "convert to" function.

Last seen on 10:38, 22. Apr 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You just need to check if…
Mon, 04/08/2024 - 18:40

You just need to check if the item in the player's main hand is tagged. Blocks can be a part of item tags.

Last seen on 05:05, 19. Apr 2024
Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Off - Topic] I also…
Tue, 04/09/2024 - 20:25

[Off - Topic] I also recommend describing questions more precisely. The MCreator browser works based on keywords so try to put as many of them as possible in the title. (Remember to make a proper sentence anyway!)