Why doesn't this procedure work?

Started by Wabbaka on

Topic category: Help with Minecraft modding (Java Edition)

Active 6 months ago
Joined Mar 2024
Points:
139

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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

Active 1 day ago
Joined May 2022
Points:
1254

User statistics:

  • Modifications: 14
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1142
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.

Active 6 months ago
Joined Mar 2024
Points:
139

User statistics:

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

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

Active 1 day ago
Joined May 2022
Points:
1254

User statistics:

  • Modifications: 14
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1142
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.

Active 7 months ago
Joined Jan 2023
Points:
371

User statistics:

  • Modifications: 0
  • Forum topics: 11
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 68
[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!)