[Mod] Bedrock [bedrock]

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

[Mod] Bedrock [bedrock]

by Calinou » Thu May 01, 2014 17:08

Another bedrock mod. Fast (using C++ ore generation), also has deepstone (harder to dig, but still diggable) before the bedrock.

Download

GitHub repository (includes issue tracker)

No dependencies on non-default mods.
License for code: zlib
License for textures: CC BY-SA 3.0 Unported
 

gsmanners
Member
 
Posts: 159
Joined: Fri Jan 10, 2014 21:37

Re: [Mod] Bedrock [bedrock]

by gsmanners » Sat May 03, 2014 21:43

Does this work with nether, or will that need to be modified to work with this?
 

User avatar
PilzAdam
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

Re: [Mod] Bedrock [bedrock]

by PilzAdam » Sat May 03, 2014 21:50

gsmanners wrote:Does this work with nether, or will that need to be modified to work with this?

It doesn't cause problems, but I would raise the height of the berock.
 

gsmanners
Member
 
Posts: 159
Joined: Fri Jan 10, 2014 21:37

Re: [Mod] Bedrock [bedrock]

by gsmanners » Sat May 03, 2014 23:13

Yeah. Actually, I was thinking about raising bedrock to -512 in my own game. That seems fairly sensible, even with the nether.
 

User avatar
PilzAdam
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

Re: [Mod] Bedrock [bedrock]

by PilzAdam » Sun May 04, 2014 14:21

gsmanners wrote:Yeah. Actually, I was thinking about raising bedrock to -512 in my own game. That seems fairly sensible, even with the nether.

The never is generated at -5000 by default, so I would set the bedrock height to the same level.
 

User avatar
PilzAdam
Developer
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
Location: Germany
GitHub: PilzAdam
IRC: PilzAdam

Re: [Mod] Bedrock [bedrock]

by PilzAdam » Sun May 04, 2014 14:24

Calinou wrote:Fast and reliable

It's not reliable. Caves, gravel fields and ores "cut" through the bedrock layer.
 

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: [Mod] Bedrock [bedrock]

by Calinou » Sun May 04, 2014 17:30

PilzAdam wrote:
Calinou wrote:Fast and reliable

It's not reliable. Caves, gravel fields and ores "cut" through the bedrock layer.


It's reliable as in, you won't be able to get too near the bottom layer (to avoid all the related issues). No single cave goes down more than ~200 blocks...

I made it that way to make it simpler and not ugly (it probably shouldn't be all flat).
 

gsmanners
Member
 
Posts: 159
Joined: Fri Jan 10, 2014 21:37

Re: [Mod] Bedrock [bedrock]

by gsmanners » Sun May 04, 2014 20:57

Hahaha. Wow. And to think you have to put up with such a thin layer of everything in Minecraft. I love this game.
 

gsmanners
Member
 
Posts: 159
Joined: Fri Jan 10, 2014 21:37

Re: [Mod] Bedrock [bedrock]

by gsmanners » Wed May 07, 2014 10:33

I kind of see what can happen with this mod. Pretty cool. You can find yourself suddenly going from a regular cave into a cave lined with bedrock walls.

Image

The above is from this modification:

Code: Select all
minetest.register_ore({
   ore_type       = "scatter",
   ore            = "bedrock:bedrock",
   wherein        = "default:stone",
   clust_scarcity = 1*1*1,
   clust_num_ores = 5,
   clust_size     = 2,
   height_min     = -4500,
   height_max     = -500,
})

minetest.register_node("bedrock:bedrock", {
   description = "Bedrock",
   tile_images = {"bedrock_bedrock.png"},
   groups = {unbreakable=1},
   sounds = default.node_sound_stone_defaults(),
})
 

User avatar
balthazariv
Member
 
Posts: 214
Joined: Mon Apr 07, 2014 15:48

Re: [Mod] Bedrock

by balthazariv » Wed Aug 20, 2014 16:59

Hello,

Why not change the name of the mod is the same as A simple bedrock mod [20120316] [bedrock].
This would allow us to settle here the two versions.

Thanks
 

User avatar
DS-minetest
Member
 
Posts: 968
Joined: Thu Jun 19, 2014 19:49
Location: in front of my pc (which is at home)
GitHub: DS-Minetest
In-game: DS

Re: [Mod] Bedrock

by DS-minetest » Wed Aug 20, 2014 20:02

I need your help. I want to know, how this
Calinou wrote:https://dl.dropboxusercontent.com/u/82342922/minetest/carbone-mods/bedrock.zip
direct link works.
Do not call me -minetest.
Call me DS or DS-minetest.
I am German, so you don't have to pm me English if you are also German.
The background is a lie.
 

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: [Mod] Bedrock

by Calinou » Wed Aug 20, 2014 20:26

balthazariv wrote:Hello,

Why not change the name of the mod is the same as A simple bedrock mod [20120316] [bedrock].
This would allow us to settle here the two versions.

Thanks


That mod isn't made to be installed with this one. Don't install several mods that do the same thing.

DS-minetest wrote:I need your help. I want to know, how this
Calinou wrote:https://dl.dropboxusercontent.com/u/82342922/minetest/carbone-mods/bedrock.zip
direct link works.


It's a public link. Right click → “Copy public link…”.
 

twoelk
Member
 
Posts: 1134
Joined: Fri Apr 19, 2013 16:19
Location: northern Germany

Re: [Mod] Bedrock

by twoelk » Thu Aug 21, 2014 16:42

Calinou wrote:...
Don't install several mods that do the same thing.
...


but
but
but I do like using different kinds of marble (all called simply marble) from different mods in one building :-(
 

User avatar
HeroOfTheWinds
Member
 
Posts: 470
Joined: Wed Apr 23, 2014 23:16
Location: Hawaii
GitHub: HeroOfTheWinds
IRC: WindHero

Re: [Mod] Bedrock

by HeroOfTheWinds » Thu Aug 21, 2014 18:35

twoelk wrote:
Calinou wrote:...
Don't install several mods that do the same thing.
...


...but I do like using different kinds of marble (all called simply marble) from different mods in one building :-(

The difference is this: if there is a component that is shared by multiple mods with different names, it might be OK, provided the actual nodes and functions don't overlap. You can have a mod with marble blocks as well as technic (which includes marble with its many other things), but you shouldn't install, say, floatindev and skylands on the same server, since those cause huge problems for both. (I once had a line of lava blocks floating in mid-air...)
But if two mods have the exact same function with the only difference being the texture of the nodes, it is pointless...
Nam ex spatio, omnes res venire possunt.
Why let the ground limit you when you can reach for the sky?
Back to college now, yay for sophomore year schedules. :P
 

User avatar
LodeRunner
Member
 
Posts: 25
Joined: Mon Nov 17, 2014 03:14
Location: Random Desert Biome

Re: [Mod] Bedrock [bedrock]

by LodeRunner » Mon Nov 17, 2014 04:27

After looking at the lua code for this, I think I may have answered my own question, but I'm not sure, being new to lua.

I tried to generate a bedrock layer for my existing singleplayer world--no dice. In the lua file, I noticed that the method called was something like "register_on_generated" or close to that. Does this mean that bedrock can only be created when the world is first generated but not afterward?

Is there a way to change this so that it CAN be generated after the fact? I've played just long enough that I don't really want to ditch my world, but I'm working on modding in such a way that bedrock would solve a few problems. Being new to lua, I don't know quite how to code a change that would allow this and not screw up my existing map.

Any help is appreciated, folks!
LodeRunner
Wait...didn't I just explore this cavern?
 

twoelk
Member
 
Posts: 1134
Joined: Fri Apr 19, 2013 16:19
Location: northern Germany
 

User avatar
LodeRunner
Member
 
Posts: 25
Joined: Mon Nov 17, 2014 03:14
Location: Random Desert Biome

Re: [Mod] Bedrock [bedrock]

by LodeRunner » Mon Nov 24, 2014 00:48

twoelk,

Hello and thanks for the tip. I'm not sure that this is exactly the solution that works best in this case, but I may have a use for WE with a related issue.

Thanks again!
LodeRunner
Wait...didn't I just explore this cavern?
 

Marshall_maz
Member
 
Posts: 240
Joined: Mon Jul 14, 2014 17:13
Location: Cullinan, South-Africa
In-game: Mazal

Re: [Mod] Bedrock [bedrock]

by Marshall_maz » Mon Nov 24, 2014 10:09

How can I find some info on how deep the deepstone spawn and then how deep the bedrock spawn after that when the mod is in default settings ? And maybe pics of how the two looks.

Thanx
 

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: [Mod] Bedrock [bedrock]

by Calinou » Mon Nov 24, 2014 16:28

Marshall_maz wrote:How can I find some info on how deep the deepstone spawn and then how deep the bedrock spawn after that when the mod is in default settings ?


Look at the source code of the mod:

Code: Select all
minetest.register_ore({
   ore_type       = "scatter",
   ore            = "bedrock:bedrock",
   wherein        = "default:stone",
   clust_scarcity = 1 * 1 * 1,
   clust_num_ores = 5,
   clust_size     = 2,
   height_min     = -30912, -- Engine changes can modify this value.
   height_max     = -30656, -- This ensures the bottom of the world is not even loaded.
})

minetest.register_ore({
   ore_type       = "scatter",
   ore            = "bedrock:deepstone",
   wherein        = "default:stone",
   clust_scarcity = 1 * 1 * 1,
   clust_num_ores = 5,
   clust_size     = 2,
   height_min     = -30656,
   height_max     = -30000,
})

minetest.register_node("bedrock:bedrock", {
   description = "Bedrock",
   tile_images = {"bedrock_bedrock.png"},
   drop = "",
   groups = {unbreakable = 1, not_in_creative_inventory = 1}, -- For Map Tools' admin pickaxe.
   sounds = default.node_sound_stone_defaults(),
})

minetest.register_node("bedrock:deepstone", {
   description = "Deepstone",
   tile_images = {"bedrock_deepstone.png"},
   drop = "default:stone", -- Intended.
   groups = {cracky = 1},
   sounds = default.node_sound_stone_defaults(),
})


Deepstone is from -30000 to -30656.
Bedrock is from -30656 to -30912.
 

Marshall_maz
Member
 
Posts: 240
Joined: Mon Jul 14, 2014 17:13
Location: Cullinan, South-Africa
In-game: Mazal

Re: [Mod] Bedrock [bedrock]

by Marshall_maz » Tue Nov 25, 2014 05:09

Thanx Calinou ,

Ah so what I found was deepstone. Needs to go a little deeper then.
 

User avatar
Wuzzy
Member
 
Posts: 2765
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Bedrock [bedrock]

by Wuzzy » Wed May 20, 2015 12:43

Calinou, your bedrock is likely to be breakable in a lot of events. I know for sure it is breakable by Minetest Game's TNT (0.4.12) as well as Carbone's TNT (unknown version), and your mod does not even bother to try using on_blast.
Minetest Game's TNT supports on_blast, but only in development version, not in 0.4.12 yet.
I don't know about Carbone's current state, but you may want to update your TNT mod in Carbone as well.

People have discovered other ways to destroy bedrock in my mod, so I fixed most of them. Your bedrock is probably vulnerable to the node swapper, the mining lasers from Technic, a jackhammer from some unknown mod. It could be moved by the sticky piston from Mesecons (you can defend against that!).

Your bedrock does not even use the immortal group.

Have a look into my Bedrock mod [bedrock2] thread here: viewtopic.php?f=9&t=11271
It has many infos, especially regarding “hostile” mods.

Long story short, I was able to defend my bedrock against most destructions (not everything yet!) with this code:
Code: Select all
minetest.register_node("bedrock2:bedrock", {
   description = "Bedrock",
   tiles = {"bedrock2_bedrock.png"},
   groups = {immortal=1, not_in_creative_inventory=1},
   sounds = { footstep = { name = "bedrock2_step", gain = 1 } },
   is_ground_content = false,
   on_blast = function() end,
   can_dig = function() return false end,
   diggable = false,
   drop = "",
})

if minetest.get_modpath("mesecons_mvps") ~= nil then
   mesecon:register_mvps_stopper("bedrock2:bedrock")
end


Well, unless you intended for your bedrock to be actually be breakable. ;-)
But I wouldn't understand why.

No dependencies on non-default mods.

Please don't write stuff like that, because this does not tell exactly which dependencies are, in fact, required. In this case, it depends on default. Just write something like:
Depends on: default
 

User avatar
davidthecreator
Member
 
Posts: 191
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

Re: [Mod] Bedrock [bedrock]

by davidthecreator » Sat May 30, 2015 10:14

I think explosives will work on bedrock so people can go under bedrock bedrock should be explosion resistant but i dont think it is so bedrock is kinda useless if player has tnt and even if it will be tnt resistant explosives from other mods might beat it
 

User avatar
Wuzzy
Member
 
Posts: 2765
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Bedrock [bedrock]

by Wuzzy » Sat May 30, 2015 16:19

Yes, davidthecreator, TNT indeed blows up this kind of bedrock, even in Carbone. That's what I have basically said in my previous post. xD

if it will be tnt resistant explosives from other mods might beat it

That's a good concern. The solution is to implement on_blast on both sides (the affected node and the explosive). If the bedrock implements on_blast, it has done its part. Now it is up to other TNT mods to respect on_blast as well. By using on_blast, we have at least *some* degree of standardization. It is not perfect yet, but it is better than nothing.
And when a TNT mod does not respect on_blast, it is a bug in the TNT mod and should be treated there.
 

User avatar
Wuzzy
Member
 
Posts: 2765
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Bedrock [bedrock]

by Wuzzy » Fri Mar 18, 2016 15:42

Here's a bedrock mod which actually works:
[Mod] Indestructible Bedrock Layer [1.0.0] [bedrock2]

:P

Calinou, do you still maintain Carbone NG? Because your bedrock mod is still kinda broken, sorry. It basically has the same issues I had with early versions of my bedrock mod.

Read the thread linked above for some common problems when creating indestructible blocks and how I have solved them. Feel free to re-use some code from this mod.

Basically, it boils down to this in the node definition:
Code: Select all
           groups = {immortal=1, not_in_creative_inventory=1},
           is_ground_content = false,
           on_blast = function() end,
           on_destruct = function () end,
           can_dig = function() return false end,
           diggable = false,
           drop = ""


And this to avoid pusing around with pistons (introduces optional dependency on mesecons_mvps):
Code: Select all
   if minetest.get_modpath("mesecons_mvps") ~= nil then
           mesecon:register_mvps_stopper(INSERT_ITEMSTRING_HERE)
   end


Your mod is still legit, however, since it takes a slightly different approach to generate bedrock.
I'm creating MineClone 2, a Minecraft clone for Minetest. I made the Help modpack, adding in-game help to Minetest.
 

eugene
New member
 
Posts: 1
Joined: Sat Oct 14, 2017 18:56
In-game: eugene

Re: [Mod] Bedrock [bedrock]

by eugene » Sat Oct 14, 2017 19:01

Hi,
The Download link is dead.
Could you re-upload somewhere, please?

Thanks a lot.
 

Next

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 9 guests