SHARE
TWEET

Rich Text Icon generating Command

CookieGamerTV May 26th, 2019 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /c
  2.  
  3. local t = ""
  4.  
  5. for _, e in pairs( game.entity_prototypes ) do
  6.     t = t .. "[entity=" .. e.name .. "]\n"
  7. end
  8.  
  9. game.write_file( "entities.txt", t )
  10.  
  11. t = ""
  12.  
  13. for _, i in pairs( game.item_prototypes ) do
  14.     t = t .. "[item=" .. i.name .. "]\n"
  15. end
  16.  
  17. game.write_file( "items.txt", t )
  18.  
  19. t = ""
  20.  
  21. for _, f in pairs( game.fluid_prototypes ) do
  22.     t = t .. "[fluid=" .. f.name .. "]\n"
  23. end
  24.  
  25. game.write_file( "fluids.txt", t )
  26.  
  27. t = ""
  28.  
  29. for _, ti in pairs( game.tile_prototypes ) do
  30.     t = t .. "[tile=" .. ti.name .. "]\n"
  31. end
  32.  
  33. game.write_file( "tiles.txt", t )
  34.  
  35. t = ""
  36.  
  37. for _, v in pairs( game.virtual_signal_prototypes ) do
  38.     t = t .. "[virtual-signal=" .. v.name .. "]\n"
  39. end
  40.  
  41. game.write_file( "signals.txt", t )
  42.  
  43. t = ""
  44.  
  45. for _, r in pairs( game.recipe_prototypes ) do
  46.     t = t .. "[recipe=" .. r.name .. "]\n"
  47. end
  48.  
  49. game.write_file( "recipes.txt", t )
  50.  
  51. t = ""
  52.  
  53. for _, te in pairs( game.technology_prototypes ) do
  54.     t = t .. "[technology=" .. te.name .. "]\n"
  55. end
  56.  
  57. game.write_file( "technologies.txt", t )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top