added bedrock
parent
74cb68fc43
commit
033d16eac4
|
@ -0,0 +1,14 @@
|
|||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
[Mod] A simple bedrock mod [20120316] [bedrock]
|
||||
|
||||
Forum Page: http://minetest.net/forum/viewtopic.php?id=1233
|
||||
Git Page: https://github.com/Hackeridze/Ru-true-minetest-game
|
||||
License: WTFPL
|
||||
|
||||
Contributors:
|
||||
jn
|
||||
|
||||
Description:
|
||||
|
||||
As I felt it was lacking, I made a simple mod to add "bedrock" to minetest, a stone that you can't destroy.
|
||||
|
||||
Notes:
|
||||
- Using this mod together with mods like Moreores or Gemstones may lead to ores being placed at the bedrock layer. If this happens, please tell me if putting the name of the other mod into depends.txt helps.
|
||||
- I will not announce new versions when I release them, but you can always find the version history (with previous versions) above.
|
Binary file not shown.
After Width: | Height: | Size: 117 KiB |
|
@ -0,0 +1 @@
|
|||
default
|
|
@ -0,0 +1,36 @@
|
|||
-- A simple bedrock mod by jn
|
||||
-- Calinou made the texture, I brightened it up
|
||||
|
||||
-- This program is free software. It comes without any warranty, to
|
||||
-- the extent permitted by applicable law. You can redistribute it
|
||||
-- and/or modify it under the terms of the Do What The Fuck You Want
|
||||
-- To Public License, Version 2, as published by Sam Hocevar. See
|
||||
-- http://sam.zoy.org/wtfpl/COPYING or the file COPYING for more details.
|
||||
|
||||
--do return end -- uncomment to disable bedrock
|
||||
|
||||
local bedrock = {}
|
||||
|
||||
bedrock.layer = -30976 -- determined as appropriate by experiment
|
||||
bedrock.node = {name = "bedrock:bedrock"}
|
||||
--bedrock.digprop = minetest.digprop_constanttime(1000000)
|
||||
bedrock.digprop = {diggability = "not"}
|
||||
|
||||
minetest.register_on_generated(function(minp, maxp)
|
||||
if maxp.y >= bedrock.layer and minp.y <= bedrock.layer then
|
||||
local p = {y = bedrock.layer}
|
||||
local n = bedrock.node
|
||||
for x = minp.x,maxp.x do
|
||||
for z = minp.z,maxp.z do
|
||||
p.x=x; p.z=z
|
||||
minetest.env:add_node(p, n)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
minetest.register_node("bedrock:bedrock", {
|
||||
description = "Bedrock",
|
||||
tiles = {"bedrock.png"},
|
||||
material = bedrock.digprop
|
||||
})
|
Binary file not shown.
After Width: | Height: | Size: 335 B |
Loading…
Reference in New Issue