Skip to content

[Feature Request] Addition of Variables #277

Description

@goodcaster1

Requesting variables for use in things like exception lists and the like. Whether this is implemented as true variables or with aliasing is up to you.

Example:

every 20 ticks do 
    input 
        except--start of Exclusion list A
            source_gem,
            source_jar,
            source_gem_block,
            heart_of_the_deep
        from Chest
    output retain 1 to each Pedestal
    forget

    input from Chest
    output to Apparatus
    forget

    input
        except--Mirrors above list A
            source_gem,
            source_jar,
            source_gem_block,
            heart_of_the_deep 
        from Apparatus
    output to Provider

end

Variables makes it something like:

Exceptions=[source_gem, source_jar, source_gem_block, heart_of_the_deep]

every 20 ticks do 
    input except Exceptions from Chest
    output retain 1 to each Pedestal
    forget

    input from Chest
    output to Apparatus
    forget

    input except Exceptions from Apparatus
    output to Provider

end

Aliasing makes:

Exceptions as source_gem, source_jar, source_gem_block, heart_of_the_deep

every 20 ticks do 
    input except Exceptions from Chest
    output retain 1 to each Pedestal
    forget

    input from Chest
    output to Apparatus
    forget

    input except Exceptions from Apparatus
    output to Provider

end

Fully possible that this is already implemented and I never saw, in which case an example show casing it would be nice.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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