CraftBook Extra Wiki
Advertisement
MCU140
File:UISO.png
IC Title IN AREA
Type UISO
Inputs 0 and 1
Outputs 1
Restricted Yes
Added CBX v14.3


This will detect if the specified entity is within the area.


This is an automatic check. [MCX140] is a manual version that checks only when toggled.

Sign Settings[]

Quick Reference[]

line 1 <blank>
line 2 [MCU140]
line 3 entity+rider
line 4 width:height:length/x-offset:y-offset:z-offset
green text = OPTIONAL
everything else = REQUIRED

Details[]

  • Line 3:
    entity+rider
    • entity is the name or type of the entity to detect
      • If using a name, the name must be exactly the same as listed. Such as "Pig" and not "pig"
      • Color types and other data values can be added by putting a @ after the entity name.
        • A red colored sheep would be added as: Sheep@14
    • rider is the optional rider on the entity.
      • Riders use the same names and types as entity.
      • If a rider is added, both the entity and the rider are required for the check.
        • If the check is for a minecart and a riding player, an empty minecart will fail the check, but a minecart with a player riding the minecart will pass and toggle the output.


  • Line 4:
    width:height:length/x-offset:y-offset:z-offset
    • width:height:length is the optional size of the area.
      • Each size value must be a number from 1 to 16.
      • If setting the width, height, length, or any offset, all 3 (width, height, length) must be set.
      • If left blank, the sizes will be:
        • 3:1:3
      • Max size values can be limited with the craftbook.properties setting: ic-in-area-max-length
    • x-offset:y-offset:z-offset is the offset for where the area is located.
      • Each offset value must be a number from -10 to 10.
      • These values do not need to be added unless the offsets need to be changed.
      • If setting the x-offset, y-offset, or z-offset, all 3 (x-offset, y-offset, z-offset) must be set.
      • If left blank, the offsets will be:
        • 0:1:0
        • This places the area above the IC block.


Entity Values[]

The entity values that can be used:

Valid Entity List
Player
Entity Optional Values Description
P
PLY
PLAYER
  • :PLAYER_NAME
    • Specifies a specific player instead of any player
    • Names must be placed after ':'
    • Examples:
      • P:M4411K4
      • PLY:M4411K4
      • PLAYER:M4411K4
Player entities.
  • Either specific players or any players
G
GRP
GROUP
  • :GROUP_NAME
    • This is required
    • Specifies a specific player group
    • Group names must be placed after ':'
    • Examples:
      • G:admins
      • GRP:admins
      • GROUP:admins
Player entities within a specific group.
  • The group name must be added
Mob
Entity Optional Values Description
Mob Any hostile Mob entities.
  • Such as Creepers, Zombies, Spiders, etc
Animal Any animal Mob entities.
  • Such as Chickens, Cows, Pigs, etc
Vehicle
Entity Optional Values Description
MINECART
  • :MINECART_TYPE#
    • Specifies a specific type of minecart instead of any minecart
    • Types must be placed after ':'
    • 0 = Normal Minecart
    • 1 = Storage Minecart
    • 2 = Powered Minecart
    • Examples:
      • MINECART:0
      • MINECART:1
      • MINECART:2
Minecart entities.
  • Either a specific type, or any type of minecart.
BOAT Boat entities.
Item
Entity Optional Values Description
ITEM
  • :ITEM_ID#
    • Specifies a specific item instead of any item
    • Types must be placed after ':'
    • Item ID #'s can be found at:
    • Examples:
      • ITEM:3
      • ITEM:49
      • ITEM:57
    • Color values can also be added after '@'
    • Examples:
      • ITEM:35@5
      • ITEM:351@13
      • ITEM:17@2
Item drop entities.
  • Either a specific item drop type, or any type of item drop.
ARROW Shot arrow entities.
EGG Thrown egg entities.
SNOWBALL Thrown snowball entities.
FIREBALL Shot Ghast fireball entities.


In addition, the following Mob names can be used:

Spawn Mob List (quick ref)
Friendly/Neutral
Chicken Cow MushroomCow Ozelot
Pig Sheep SnowMan Squid
Villager VillagerGolem Wolf
Hostile
Blaze CaveSpider Creeper Enderman
Ghast Giant LavaSlime Monster
PigZombie Silverfish Skeleton Slime
Spider Zombie


Inputs[]

File:IC input1.png

1 input

A / 1: Check
When the input is toggled on, it will start checking if the specified entity is in the set area, or enters the set area.


Outputs[]

File:IC output1.png

1 output

D / 1: Found
The output turns on if the specified entity is in the area, or turns off if the entity was not found in the area.


Optional Modes[]

none

Examples[]

Detect Player[]

Basic sign setup to detect Players (P) in a 3x1x3 area right above the IC block.

1
2 [MCU140]
3 P
4


Detect Mobs[]

Basic sign setup to detect hostile Mobs in a 3x1x3 area right above the IC block.

1
2 [MCU140]
3 Mob
4


Detect Creepers[]

Basic sign setup to detect Creepers in a 3x1x3 area right above the IC block.

1
2 [MCU140]
3 Creeper
4


Detect dropped items[]

Basic sign setup to detect dropped items in a 3x1x3 area right above the IC block.

1
2 [MCU140]
3 Item
4


Detect dropped green wool[]

Basic sign setup to detect dropped green wool (id# 35, color# 5) in a 3x1x3 area right above the IC block.

1
2 [MCU140]
3 Item:35@5
4


Detect Animal riding a Minecart[]

Basic sign setup to detect minecarts with an Animal riding it, in a 3x1x3 area right above the IC block.

1
2 [MCU140]
3 Minecart+Animal
4


Detect Player riding a Saddled Pig[]

Basic sign setup to detect saddled pigs with a player riding it, in a 3x1x3 area right above the IC block.

1
2 [MCU140]
3 Pig:1+P
4


Detect Player in 3x6x5 area[]

Basic sign setup to detect Players (P) in a 3x6x5 area right above the IC block.

1
2 [MCU140]
3 P
4 3:6:5


Detect Player in 3x6x5 area and 4 x-offset, 2 y-offset, -7 z-offset[]

Basic sign setup to detect Players (P) in a 3x6x5 area with an offset from the IC block of 4 in the x direction, 2 up in the y direction, and -7 in the z direction.

1
2 [MCU140]
3 P
4 3:6:5/4:2:-7


Gallery[]

Bugs[]

See Also[]

Advertisement