Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

Modifyworld has a METADATA limit? #85

Open
SovHed opened this issue Dec 21, 2013 · 2 comments
Open

Modifyworld has a METADATA limit? #85

SovHed opened this issue Dec 21, 2013 · 2 comments

Comments

@SovHed
Copy link

SovHed commented Dec 21, 2013

I'm trying to block a few items with the line:
-modifyworld.blocks.(place|interact|destroy).(12275|20256:4096|20256:4097|20256:4098|20256:4099|1285)
However... The :4096 and other metadata values appear not to work. Whereas all the other items i block in the same method with metadata values such as 3120:14||1405:7 work just fine. Is there a limit to the metadata value, or what am I doing wrong? It is just items with a high metadata that are not blocked successfully.

@FrancescoDeSa
Copy link

Maybe I'm wrong, but the : are a RegEx operator that should be escaped when you use it in a regex

@socram8888
Copy link
Contributor

Minecraft uses 12 bits for each block ID, which means there can be up to 4096 different blocks, whose ID range from 0 to 4095. It's phisically impossible that any block has an id 12275, for example.

Also block metas are 4 bits, with 16 different values, from 0 to 15. Anything outside that range isn't valid either.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants