Coinage

Getting Block ID's as PM's

May 10th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. // This is assuming you have a world deserializer.
  2.  
  3. case "b":
  4. int l = m.GetInt(0), x = m.GetInt(1), y = m.GetInt(2), b = m.GetInt(3), u = m.GetInt(4);
  5. if (b != 301) // Beach shovel is 301
  6. {
  7. blocks[l, x, y];     // Block array
  8. }
  9. ...  // Code for adding blocks to a list   (make sure it doesn't add 301 as a block to the list)
  10. if (b == 301)
  11. {
  12. con.Send("say", "/pm " + players[s] + " Block ID: " + blocks[l, x, y]); Thread.Sleep(150);
  13. con.Send(worldkey, l, x, y, blocks[l, x, y]); Thread.Sleep(25);
  14. }
  15. break;
Advertisement
Add Comment
Please, Sign In to add comment