Check for partial tags

Started by Anakardian on Tue, 05/12/2020 - 15:36

Topic category: Help with modding (Java Edition)

Last seen on 14:30, 5. Jul 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Check for partial tags
Tue, 05/12/2020 - 15:36

I am trying to get the tag of a block but want to use a wildcard so i don't have list all known and unknown blocks in the procedure.

Does anyone know have to use a wild card when working with tags?

Below is the procedure block i have so far.

The tags are created and it works with the forge:ores tag but cannot find a tag called forge:ores/iron using forge:ores/*

procedure block

Last seen on 14:30, 5. Jul 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
That is really too bad. How…
Wed, 05/13/2020 - 18:17

That is really too bad.

How should i go about handling ores from mods if it is not possible to use the tags to identify them?

 

The tag system is not…
Wed, 05/13/2020 - 19:43

The tag system is not designed to work that way. You can check for specific groups, say forge:ores, but mods need to tag under this group. You can do multiple checks for different groups if you want to check multiple groups.

Last seen on 14:30, 5. Jul 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I was kind of afraid this…
Thu, 05/14/2020 - 15:29

I was kind of afraid this would be the case.

My idea is now to see what block is below the "current" block and compare th two.

If they are the same, move one block down and repeat until the blocks are no longer the same.

If that works, i can probably figure out how to check the other directions as well at whateever position i end up in.

The offsets would then be stored in tags to make sure they are not disappearing on me.

Would that be a viable solution instead?