Create a free account to remove all ad content.

Author Topic:  Script Command Documentation  (Read 32952 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 #110 on: July 20, 2016, 11:49:06 PM »
Input: Prompt the player to enter a number.

Input [var]

[var] name of the variable to store the number entered.

Examples:

Input [count]
Prompts the player to enter a number. Once the number is entered, the variable named 'count' contains the number.

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #111 on: August 12, 2016, 05:01:35 AM »
IsLight: Queries the quantity of light at a location.

IsLight [x,y,z] [sun|moon|block] [compare] [count]

Examples:

IsLight [150,200,300] [>] [5]
IsLight [150,200,300] [sun|moon|block] [>] [5]
Returns true if location 150,200,300 has either a sun, moon or a light level greater than 5.

IsLight [100,200,300] [sun] [<] [10]
Returns true if location 100,200,300 has a sunlight level of less than 10.

IsLight [100,200,300] [moon|block] [=] [12]
Returns true if location 100,200,300 has either moon light or block light that equals 12.

Craig

  • Developer
  • Extreme Member
  • *
  • Posts: 6655
  • Dig Deep
    • View Profile
    • Twitter
  • Steam: tota1miner
Re: Script Command Documentation
« Reply #112 on: August 20, 2016, 09:36:45 PM »
IsInZone: Queries if the player is in a zone.

This command is only supported from Version 2.5.

IsInZone [Spawn|NoEdit|NoPvP|NoFly|NoMobs|NoEscape] [true|false]

Specify one or more types of zone types.

Examples:

IsInZone [NoEdit|NoPvP]
IsInZone [NoEdit|NoPvP] [true]
Returns true if the player is in a no edit and no pvp zone.

IsInZone [Spawn] [false]
Returns true if the player is not in a spawn zone.