Skip to content

Improve redstone support #46

Description

@slava110
  1. Instead of single launch I suggest turning of autolaunch when block has redstone signal in
    @Override
    @SuppressWarnings("deprecation")
    public void neighborChanged(@NotNull BlockState blockState, Level level, @NotNull BlockPos blockPos, @NotNull Block block, @NotNull BlockPos blockPos2, boolean bl) {
    boolean powered = level.hasNeighborSignal(blockPos) || level.hasNeighborSignal(blockPos.above());
    if (powered) {
    ControlPanelBlockEntity blockEntity = (ControlPanelBlockEntity) level.getBlockEntity(blockPos);
    if (blockEntity != null) blockEntity.launch();
    }
    }
  2. Comparator support would be nice for rocket pad
  3. Assembler can either pulse or give comparator output when building rocket is done
  4. Maybe navigation panel can output redstone signal based on how much distance to target is left of total path? But not sure how it should work for multiple launched rockets. Maybe track last one or, the opposite, closest to target?

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