Unit enter payload command
This commit is contained in:
@@ -57,6 +57,8 @@ public class Block extends UnlockableContent implements Senseable{
|
||||
public boolean conductivePower = false;
|
||||
/** If true, this block can output payloads; affects blending. */
|
||||
public boolean outputsPayload = false;
|
||||
/** If true, this block can input payloads; affects unit payload enter behavior. */
|
||||
public boolean acceptsPayloads = false;
|
||||
/** If true, payloads will attempt to move into this block. */
|
||||
public boolean acceptsPayload = false;
|
||||
/** Visual flag use for blending of certain transportation blocks. */
|
||||
|
||||
@@ -30,6 +30,7 @@ public abstract class BlockProducer extends PayloadBlock{
|
||||
hasItems = true;
|
||||
solid = true;
|
||||
hasPower = true;
|
||||
acceptsPayloads = false;
|
||||
rotate = true;
|
||||
regionRotated1 = 1;
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@ public class PayloadBlock extends Block{
|
||||
update = true;
|
||||
sync = true;
|
||||
group = BlockGroup.payloads;
|
||||
acceptsPayloads = true;
|
||||
envEnabled |= Env.space | Env.underwater;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ public class PayloadConveyor extends Block{
|
||||
update = true;
|
||||
outputsPayload = true;
|
||||
noUpdateDisabled = true;
|
||||
acceptsPayloads = true;
|
||||
priority = TargetPriority.transport;
|
||||
envEnabled |= Env.space | Env.underwater;
|
||||
sync = true;
|
||||
|
||||
@@ -37,6 +37,7 @@ public class PayloadSource extends PayloadBlock{
|
||||
noUpdateDisabled = true;
|
||||
clearOnDoubleTap = true;
|
||||
regionRotated1 = 1;
|
||||
acceptsPayloads = false;
|
||||
commandable = true;
|
||||
|
||||
config(Block.class, (PayloadSourceBuild build, Block block) -> {
|
||||
|
||||
Reference in New Issue
Block a user