Advertisement
Guest User

Packim Spawner

a guest
Jul 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.70 KB | None | 0 0
  1. local function MakeTags()
  2.     local map_data =
  3.         {
  4.             ["Packim_Fishbone"] = true,
  5.         }
  6.  
  7.     local map_tags =
  8.         {
  9.         ["Packim_Fishbone"] =   function(tagdata)                                      
  10.                                         if tagdata["Packim_Fishbone"] == false then
  11.                                             return
  12.                                         end
  13.                                         tagdata["Packim_Fishbone"] = false
  14.                                         return "ITEM", "packim_fishbone"
  15.                                     end,
  16.         }                      
  17. return {Tag = map_tags, TagData = map_data }
  18. end
  19.  
  20. -- Exemplo:
  21. AddRoom("TidalMarsh", {
  22.                     colour={r=0,g=.5,b=.5,a=.10},
  23.                     value = GROUND.TIDALMARSH,
  24.                     tags = {"Chester_Eyebone", "Packim_Fishbone"},
  25.                     contents =  {
  26.                                     distributepercent = 0.3,
  27.                                     distributeprefabs =
  28.                                     {
  29.                                         jungletree = .05,
  30.                                         marsh_bush = .05,
  31.                                         tidalpool = 0.1,                                       
  32.                                         reeds =  0.5,
  33.                                         spiderden = .01,
  34.                                         green_mushroom = 1,
  35. --                                      mermhouse = 0.01, --was 0.04
  36.                                         mermfishhouse = 0.05,
  37.                                         poisonhole = 0.1,
  38. --                                      seaweed_planted = 0.5,
  39. --                                      fishinhole = .1,
  40.                                         flupspawner = 1,
  41.                                         flup = 2,
  42.                                     },
  43.                                      countprefabs =
  44.                                     {
  45.                                         --mermfishhouse = 5,
  46.                                         tidalpool = 5,
  47.                                         poisonhole = 8,
  48.                                         reeds =  3,
  49. --                                      mermhouse = 2,
  50.                                         poisonhole = 3,
  51.                                     },
  52.                                 }
  53.                     })
  54.                    
  55. -- ~Kynoox_
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement