Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function color_change()
- tpt.start_getPartIndex()
- while tpt.next_getPartIndex() do
- local index = tpt.getPartIndex()
- if tpt.get_property("ctype", index) == elem.DEFAULT_PT_GOLD then
- tpt.set_property("dcolour", 0xff0000ff, index)
- end
- if tpt.get_property("tmp", index) == 1 then
- tpt.set_property("dcolour", 0xffff0000, index)
- end
- end
- end
- event.register(event.tick, color_change)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement