[Solved] BlockType from id

Is there a way to get a BlockType from the string id?

This is an issue … . I would say report it to as a bug. I am also surprised actually :worried:.

Possibly something in the GameRegistry?

EDIT: GameRegistry.getType(BlockType.class, "id") might work.

1 Like

Oh that makes sense :stuck_out_tongue:.

You can also use the GenericArguments.catalogedElement(key, game, BlockType.class) command argument, if the string is entered by a user.