12
12
import pl .asie .computronics .block .BlockChatBox ;
13
13
import pl .asie .computronics .block .BlockCipher ;
14
14
import pl .asie .computronics .block .BlockIronNote ;
15
+ import pl .asie .computronics .block .BlockRadar ;
15
16
import pl .asie .computronics .block .BlockSorter ;
16
17
import pl .asie .computronics .block .BlockTapeReader ;
17
18
import pl .asie .computronics .gui .GuiOneSlot ;
24
25
import pl .asie .computronics .tile .TileChatBox ;
25
26
import pl .asie .computronics .tile .TileCipherBlock ;
26
27
import pl .asie .computronics .tile .TileIronNote ;
28
+ import pl .asie .computronics .tile .TileRadar ;
27
29
import pl .asie .computronics .tile .TileTapeDrive ;
28
30
import pl .asie .computronics .tile .sorter .TileSorter ;
29
31
import pl .asie .lib .gui .GuiHandler ;
60
62
import cpw .mods .fml .common .registry .GameRegistry ;
61
63
import cpw .mods .fml .relauncher .Side ;
62
64
63
- @ Mod (modid ="computronics" , name ="Computronics" , version ="0.4.2 " , dependencies ="required-after:asielib;after:OpenPeripheralCore;after:ComputerCraft;after:OpenComputers;after:OpenComputers|Core;after:BuildCraft|Core" )
65
+ @ Mod (modid ="computronics" , name ="Computronics" , version ="0.5.0 " , dependencies ="required-after:asielib;after:OpenPeripheralCore;after:ComputerCraft;after:OpenComputers;after:OpenComputers|Core;after:BuildCraft|Core" )
64
66
public class Computronics {
65
67
public Configuration config ;
66
68
public static Random rand = new Random ();
@@ -77,6 +79,7 @@ public class Computronics {
77
79
public static int CAMERA_DISTANCE = 32 ;
78
80
public static int TAPEDRIVE_DISTANCE = 24 ;
79
81
public static int BUFFER_MS = 750 ;
82
+ public static int RADAR_RANGE = 32 ;
80
83
public static String CHATBOX_PREFIX = "[ChatBox]" ;
81
84
public static String TAPE_LENGTHS ;
82
85
public static boolean CAMERA_REDSTONE_REFRESH , CHATBOX_ME_DETECT , CHATBOX_CREATIVE ;
@@ -90,6 +93,7 @@ public class Computronics {
90
93
public static BlockChatBox chatBox ;
91
94
public static BlockSorter sorter ;
92
95
public static BlockCipher cipher ;
96
+ public static BlockRadar radar ;
93
97
94
98
public static ItemTape itemTape ;
95
99
public static ItemMultiple itemParts ;
@@ -123,6 +127,7 @@ public void preInit(FMLPreInitializationEvent event) {
123
127
CHATBOX_CREATIVE = config .get ("chatbox" , "enableCreative" , true ).getBoolean (true );
124
128
TAPEDRIVE_DISTANCE = config .get ("tapedrive" , "hearingDistance" , 24 ).getInt ();
125
129
TAPE_LENGTHS = config .get ("tapedrive" , "tapeLengths" , "4,8,16,32,64,2,6,16,128" ).getString ();
130
+ RADAR_RANGE = config .get ("radar" , "maxRange" , 32 ).getInt ();
126
131
127
132
config .get ("camera" , "sendRedstoneSignal" , true ).comment = "Setting this to false might help Camera tick lag issues, at the cost of making them useless with redstone circuitry." ;
128
133
@@ -149,13 +154,18 @@ public void preInit(FMLPreInitializationEvent event) {
149
154
cipher = new BlockCipher ();
150
155
GameRegistry .registerBlock (cipher , "computronics.cipher" );
151
156
GameRegistry .registerTileEntity (TileCipherBlock .class , "computronics.cipher" );
157
+
158
+ radar = new BlockRadar ();
159
+ GameRegistry .registerBlock (radar , "computronics.radar" );
160
+ GameRegistry .registerTileEntity (TileRadar .class , "computronics.radar" );
152
161
153
162
if (Loader .isModLoaded ("OpenPeripheralCore" )) {
154
163
OpenPeripheralAPI .createAdapter (TileTapeDrive .class );
155
164
OpenPeripheralAPI .createAdapter (TileIronNote .class );
156
165
OpenPeripheralAPI .createAdapter (TileCamera .class );
157
166
//OpenPeripheralAPI.createAdapter(TileSorter.class);
158
167
OpenPeripheralAPI .createAdapter (TileCipherBlock .class );
168
+ OpenPeripheralAPI .createAdapter (TileRadar .class );
159
169
}
160
170
161
171
itemTape = new ItemTape (TAPE_LENGTHS );
@@ -188,6 +198,7 @@ public void init(FMLInitializationEvent event) {
188
198
GameRegistry .addShapedRecipe (new ItemStack (ironNote , 1 , 0 ), "iii" , "ini" , "iii" , 'i' , Items .iron_ingot , 'n' , Blocks .noteblock );
189
199
GameRegistry .addShapedRecipe (new ItemStack (tapeReader , 1 , 0 ), "iii" , "iri" , "iai" , 'i' , Items .iron_ingot , 'r' , Items .redstone , 'a' , ironNote );
190
200
GameRegistry .addShapedRecipe (new ItemStack (cipher , 1 , 0 ), "sss" , "srs" , "eie" , 'i' , Items .iron_ingot , 'r' , Items .redstone , 'e' , Items .ender_pearl , 's' , Blocks .stonebrick );
201
+ GameRegistry .addShapedRecipe (new ItemStack (radar , 1 , 0 ), "sts" , "rbr" , "scs" , 'i' , Items .iron_ingot , 'r' , Items .redstone , 't' , Blocks .redstone_torch , 's' , Blocks .stonebrick , 'b' , Items .bowl , 'c' , Items .comparator );
191
202
// Tape recipes
192
203
GameRegistry .addRecipe (new ShapedOreRecipe (new ItemStack (itemTape , 1 , 0 ),
193
204
" i " , "iii" , " T " , 'T' , new ItemStack (itemParts , 1 , 0 ), 'i' , Items .iron_ingot ));
0 commit comments