DF Manual Patch 6.6.1

IF GAME

Used to execute the code inside it if a certain condition related to the plot is met.

examples

Check if a container has all of
a certain set of items
Check if a sign's text contains
a certain text
Check if a block at a certain
location is a certain block

Actions

| SignHasTxt (aka. )

Tags

name: Sign Line default: All lines options: 1, 2, 3, 4, All lines

name: Check Mode default: Contains options: Contains, Equals



Container Has Room For Item | HasRoomForItem (aka. )

Tags

name: Check Mode default: Has Room for Any Item options: Has Room for Any Item, Has Room for All Items



Event Block Equals | EventBlockEquals (aka. )


Command Equals | CommandEquals (aka. )

Tags

name: Check Mode default: Check entire command options: Check entire command, Check beginning

name: Ignore Case default: True options: True, False



Event Item Equals | EventItemEquals (aka. )

Tags

name: Comparison Mode default: Ignore stack size/durability options: Exactly equals, Ignore stack size/durability, Material only



Sign Contains Text | SignHasTxt (aka. )

Tags

name: Sign Line default: All lines options: 1, 2, 3, 4, All lines

name: Sign Side default: Front options: Front, Back

name: Check Mode default: Contains options: Contains, Equals



Attack Is Critical | AttackIsCrit (aka. )


Container Has Item | ContainerHas (aka. )


Block Equals | BlockEquals (aka. GBlockEquals)


Location Is In Block | InBlock (aka. )


Block Is Powered | BlockPowered (aka. )

Tags

name: Redstone Power Mode default: Direct power options: Direct power, Indirect power



Game Has Player | HasPlayer (aka. )


Container Has All Items | ContainerHasAll (aka. )


Command Argument Equals | CmdArgEquals (aka. )

Tags

name: Ignore Case default: True options: True, False



Event Is Cancelled | EventCancelled (aka. )