Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //this is a really crappy custom command that'll gets removed immediately if it works!
- //blabla, codestuff
- @Override
- public void processCommand(ICommandSender sender, String[] args) {
- try {
- int x,y,z;
- RGBVec vec = new RGBVec(args[0]);
- EntityPlayer player = (EntityPlayer) sender;
- World world = player.getEntityWorld();
- x = (int)player.posX; y = (int) player.posY - 1; z = (int) player.posZ;
- LampTileEntity tile = (LampTileEntity) world.getTileEntity(x,y,z);
- tile.RGB_VALUES = vec;
- if (tile.RGB_VALUES != null)
- {
- System.out.println(tile.RGB_VALUES.toString() + "@" + x + ";" + y + ";" + z);
- }
- tile.CustomupdateEntity();
- }
- catch (Exception e)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement