Skip to content

Commit

Permalink
Fix liquids bug. Add more examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
srifqi committed Aug 20, 2014
1 parent e4d0942 commit d0db145
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ CC 1.0 Universal (see LICENSE file)
|Deep Underground|`"superflat:bedrock=1,default:stone=920,default:dirt=10,default:dirt_with_grass=1"`
|Very Deep Underground|`"superflat:bedrock=1,default:stone=3680,default:dirt=15,default:dirt_with_grass=1"`
|Bottomless Pit|`"default:cobble=2,default:dirt=3,default:dirt_with_grass=1"`
|Shallow Sea|`"superflat:bedrock=1,default:dirt=3,default:water_source=5"`
|Sea|`"superflat:bedrock=1,default:dirt=3,default:water_source=10"`
|Deep Sea|`"superflat:bedrock=1,default:dirt=3,default:water_source=20"`
|Water World|`"superflat:bedrock=1,default:dirt=3,default:water_source=60"`
|Beach|`"superflat:bedrock=1,default:sand=3,default:water_source=1"`
|Desert superflat|`"superflat:bedrock=1,default:desert_sand=3"`
|Farmer's dream|`"superflat:bedrock=1,default:water_source=1,farming:soil_wet=1"`
1 change: 1 addition & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
end
vm:set_data(data)
vm:set_lighting({day=0, night=0})
vm:update_liquids()
vm:calc_lighting()
vm:write_to_map(data)
end)
Expand Down
19 changes: 17 additions & 2 deletions parameter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,25 @@ sflat.BLOCKS = "superflat:bedrock=1,default:dirt=2,default:dirt_with_grass=1"
-- SUPERFLAT: Bottomless Pit
"default:cobble=2,default:dirt=3,default:dirt_with_grass=1"
-- SUPERFLAT: Shallow Sea
"superflat:bedrock=1,default:dirt=3,default:water_source=5"
-- SUPERFLAT: Sea
"superflat:bedrock=1,default:dirt=3,default:water_source=10"
-- SUPERFLAT: Deep Sea
"superflat:bedrock=1,default:dirt=3,default:water_source=20"
-- SUPERFLAT: Water World
"superflat:bedrock=1,default:dirt=3,default:water_source=60"
-- SUPERFLAT: Beach
"superflat:bedrock=1,default:sand=3,default:water_source=1"
-- DESERT SUPERFLAT
"superflat:bedrock=1,default:desert_sand=3"
"superflat:bedrock,default:desert_sand=3"
-- SUPERFLAT: Farmer's dream
"superflat:bedrock=1,default:water_source=1,farming:soil_wet=1"
--]]
--]]

0 comments on commit d0db145

Please sign in to comment.