gnembon_mc

Ore Finder with Carpet Script

Feb 16th, 2019
800
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.64 KB | None | 0 0
  1. gamerule commandBlockOutput false
  2.  
  3. script run check(x, y, z, block_type, particle_name, limit) ->
  4.     if (convnb(x,y,z, _a+( _ == block_type )) >= limit,
  5.         particle(x, top('light',x,z)+1 , z, particle_name); 1 ,
  6.         0
  7.     )
  8. script run check_ores(x,y,z) -> (
  9.  check(x,y,z,'emerald_ore','happy_villager',1);
  10.  check(x,y,z,'redstone_ore','heart',3);
  11.  check(x,y,z,'diamond_ore','nautilus',1);
  12.  check(x,y,z,'lapis_ore','rain',1);
  13.  check(x,y,z,'iron_ore','poof',4));
  14.  
  15. script run check_area(x,z) -> area(x,9,z, 32,8,32, check_ores(_x, _y, _z))
  16.  
  17. script run check_area(x,z)
  18.  
  19. script run undef(check); undef(check_ores); undef(check_area);
Advertisement
Add Comment
Please, Sign In to add comment