Create a free account to remove all ad content.

Author Topic:  Script Command Documentation  (Read 31771 times)

0 Members and 1 Guest are viewing this topic.

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #70 on: June 14, 2015, 04:03:35 AM »
IsBlockLightSource: Queries if the block at a location is a light source (emits light).

IsBlockLightSource [x,y,z] [true|false]

Examples:

IsBlockLightSource [150,200,300]
IsBlockLightSource [150,200,300] [true]
Returns true if the block at location 150,200,300 is a light source.

IsBlockLightSource [150,200,300] [false]
Returns true if the block at location 150,200,300 is not a light source.
« Last Edit: June 16, 2015, 07:14:43 PM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #71 on: June 14, 2015, 04:03:44 AM »
IsLit: Queries if a location is touched by light, either from itself or an adjacent location.

If [x,y,z] does not contains a solid block then IsLit is equivalent to IsLight [>] [0], otherwise IsLit is equivalent to testing IsLight [>] [0] for every adjacent location and returning true if at least one adjacent location contains light.

IsLit [x,y,z] [sun|moon|block] [true|false]

Examples:

IsLit [150,200,300]
IsLit [150,200,300] [true]
IsLit [150,200,300] [sun|moon|block] [true]
Returns true if the block at location 150,200,300 is lit by either the sun, moon or a light emitting block (including itself).

IsLit [100,200,300] [sun]
IsLit [100,200,300] [sun] [true]
Returns true if the block at 100,200,300 is lit by the sun.

IsLit [100,200,300] [sun|moon]
Returns true if the block at 100,200,300 is lit by the sun or the moon.

IsLit [100,200,300] [moon|block]
Returns true if the block at 100,200,300 is lit by the moon or another block (torch, sun box, lava etc).

IsLit [100,200,300] [moon|block] [false]
Returns true if the block at 100,200,300 is not lit by the moon or another block (torch, sun box, lava etc).
« Last Edit: August 12, 2016, 04:59:44 AM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #72 on: June 14, 2015, 04:03:53 AM »
IsBlockOre: Queries if the block at a location is an ore block.

IsBlockOre [x,y,z] [true|false]

Examples:

IsBlockOre [150,200,300]
IsBlockOre [150,200,300] [true]
Returns true if the block at location 150,200,300 is an ore block.

IsBlockOre [150,200,300] [false]
Returns true if the block at location 150,200,300 is not an ore block.
« Last Edit: June 16, 2015, 07:13:44 PM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #73 on: June 14, 2015, 04:04:03 AM »
IsBlockPassable: Queries if a player can pass through the block at a location.

IsBlockPassable [x,y,z] [true|false]

Examples:

IsBlockPassable [150,200,300]
IsBlockPassable [150,200,300] [true]
Returns true if the player can pass through the block at location 150,200,300.

IsBlockPassable [150,200,300] [false]
Returns true if the player can not pass through the block at location 150,200,300.
« Last Edit: June 16, 2015, 07:15:10 PM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #74 on: June 14, 2015, 04:04:13 AM »
IsBlockDeliveringPower: Queries if a block is delivering power (to adjacent blocks).

IsBlockDeliveringPower [x,y,z] [true|false]
« Last Edit: June 14, 2015, 07:45:03 AM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #75 on: June 14, 2015, 04:04:24 AM »
IsBlockReceivingPower: Queries if a block is receiving power from an adjacent power emitting block.

Note: This command has replaced the old IsPowered command.

IsBlockReceivingPower [x,y,z] [true|false]
« Last Edit: June 14, 2015, 07:44:33 AM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #76 on: June 14, 2015, 04:04:39 AM »
IsBlockSolid: Queries if the block at a location is a solid block (players cannot see through it or see through parts of it).

IsBlockSolid [x,y,z] [true|false]

Examples:

IsBlockSolid [150,200,300]
IsBlockSolid [150,200,300] [true]
Returns true if the block at location 150,200,300 is a solid block.

IsBlockSolid [150,200,300] [false]
Returns true if the block at location 150,200,300 is not a solid block. i.e. the player can see through it.
« Last Edit: June 16, 2015, 07:15:37 PM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #77 on: June 14, 2015, 04:04:49 AM »
IsClock: Queries the current game hour (24 hour clock).

IsClock [hour] [true|false]
IsClock [compare] [hour|history]

Examples:

IsClock [10]
IsClock [10] [true]
Returns true if it is between 10:00 and 10:59.

IsClock [10] [false]
Returns true if it is not between 10:00 and 10:59.

IsClock [=] [10]
Same as IsClock [10] [true].

IsClock [>] [10]
Returns true if it is 11:00 or later.

IsClock [<] [10]
Returns true if it is earlier than 10:00.

IsClock [<] [syshistory:time]
Returns true if the clock (in hours) is less than the value stored in the system history record called time.
« Last Edit: November 05, 2015, 04:12:21 PM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #78 on: June 14, 2015, 04:05:00 AM »
IsDayTime: Queries if it is currently day time.

IsDayTime [true|false]
« Last Edit: June 14, 2015, 07:39:47 AM by Craig »

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #79 on: June 14, 2015, 04:05:09 AM »
IsNightTime: Queries if it is currently night time.

IsNightTime [true|false]
« Last Edit: June 14, 2015, 07:40:18 AM by Craig »