Skip to content

[Feature Request] BlockRestriction fields for Vanilla Factory #121

@sneetsnart

Description

@sneetsnart

It would be nice if custom blocks could have defined restrictions for where they can be placed, like torches needing a solid block below them, or plants only surviving on dirt. The definition could accept 3 inputs, SOLID if it can exist on top of solid blocks, ANY if it can survive on any block (excluding air), and a crafttweaker block definition <examplemod:exampleblock> allowing a specific block or oresource definition that the block can exist on top of.

var custom_grass = VanillaFactory.createBlock("custom_grass", <blockmaterial:Plants>);
custom_grass.setBlockRestriction(<ore:dirt>);
custom_grass.register();

var custom_torch = VanillaFactory.createBlock("custom_torch", <blockmaterial:Wood>);
custom_torch.setBlockRestriction("SOLID");
custom_torch.register();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions