Advertisement
Guest User

rock-gold cluster visualizer

a guest
Feb 16th, 2021
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. function color_change()
  2.     tpt.start_getPartIndex()
  3.     while tpt.next_getPartIndex() do
  4.         local index = tpt.getPartIndex()
  5.         if tpt.get_property("ctype", index) == elem.DEFAULT_PT_GOLD then
  6.             tpt.set_property("dcolour", 0xff0000ff, index)
  7.         end
  8.         if tpt.get_property("tmp", index) == 1 then
  9.             tpt.set_property("dcolour", 0xffff0000, index)
  10.         end
  11.     end
  12. end
  13.  
  14. event.register(event.tick, color_change)
  15.        
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement