Querz / mcaselector

A tool to select chunks from Minecraft worlds for deletion or export.
MIT License
3.17k stars 177 forks source link

Can't use modded blocks as filters #436

Closed Insane96 closed 6 months ago

Insane96 commented 1 year ago

Describe the bug When filtering by blocks/tile entities, you can't use modded blocks.

To Reproduce Steps to reproduce the behavior:

  1. Start a world with a mod that adds at least one block
  2. Place that block
  3. Run MCA and filter chunks by blocks
  4. Can't use the modded block ID because it requires valid vanilla blocks

image

KateReller commented 6 months ago

https://github.com/Querz/mcaselector/issues/387#issuecomment-1251564787

I just copied this message by Querz from discord:

you can replace blocks with the ReplaceBlocks field in the Change fields dialog. The syntax works like this: <source-block>=<target-block-name|block-nbt[;<tile-nbt]>. if the source block is not a valid minecraft block name, you can use single quotes to force it to validate. everything in single quotes is also interpreted as a regular expression. so for example if you would like to replace all kinds of log with let's say, stone, you could do something like this: '.*log$'=stone