forked from VoxeLibre/VoxeLibre
Finish adding backticks to documentation, switch from indestructable to unbreakable and make nodes with either group indestructable
This commit is contained in:
parent
4d430dc058
commit
405799dbfc
|
@ -348,7 +348,7 @@ local function overwrite()
|
|||
count = count + 1
|
||||
local newgroups = table.copy(ndef.groups)
|
||||
|
||||
if not newgroups.indestructable then
|
||||
if not newgroups.unbreakable and not newgroups.indestructable then
|
||||
ndef.diggable = true
|
||||
mcl_autogroup.group_compatibility(newgroups, ndef)
|
||||
if not ndef._mcl_hardness then
|
||||
|
|
|
@ -2,28 +2,28 @@
|
|||
This mod emulates digging times from MC.
|
||||
|
||||
## `mcl_autogroup.can_harvest(nodename, toolname, player)`
|
||||
Return true if `nodename` can be dig with `toolname` by <player>.
|
||||
Return true if `nodename` can be dig with `toolname` by `player`.
|
||||
|
||||
* nodename: string, valid nodename
|
||||
* toolname: (optional) string, valid toolname
|
||||
* player: (optinal) ObjectRef, valid player
|
||||
* `nodename`: string, valid nodename
|
||||
* `toolname`: (optional) string, valid toolname
|
||||
* `player`: (optinal) ObjectRef, valid player
|
||||
|
||||
## `mcl_autogroup.get_groupcaps(toolname, efficiency)`
|
||||
This function is used to calculate diggroups for tools.
|
||||
WARNING: This function can only be called after mod initialization.
|
||||
* toolname: string, name of the tool being enchanted (like "mcl_tools:diamond_pickaxe")
|
||||
* efficiency: (optional) integer, the efficiency level the tool is enchanted with (default 0)
|
||||
* `toolname`: string, name of the tool being enchanted (like `"mcl_tools:diamond_pickaxe"`)
|
||||
* `efficiency`: (optional) integer, the efficiency level the tool is enchanted with (default 0)
|
||||
|
||||
## `mcl_autogroup.get_wear(toolname, diggroup)`
|
||||
Return the max wear of `toolname` with `diggroup`
|
||||
WARNING: This function can only be called after mod initialization.
|
||||
* toolname: string, name of the tool used
|
||||
* diggroup: string, the name of the diggroup the tool is used on
|
||||
* `toolname`: string, name of the tool used
|
||||
* `diggroup`: string, the name of the diggroup the tool is used on
|
||||
|
||||
## `mcl_autogroup.register_diggroup(group, def)`
|
||||
* group: string, name of the group to register as a digging group
|
||||
* def: (optional) table, table with information about the diggroup (defaults to {} if unspecified)
|
||||
* level: (optional) string, if specified it is an array containing the names of the different digging levels the digging group supports
|
||||
* `group`: string, name of the group to register as a digging group
|
||||
* `def`: (optional) table, table with information about the diggroup (defaults to `{}` if unspecified)
|
||||
* `level`: (optional) string, if specified it is an array containing the names of the different digging levels the digging group supports
|
||||
|
||||
## `mcl_autogroup.registered_diggroups`
|
||||
List of registered diggroups, indexed by name.
|
||||
|
|
|
@ -728,7 +728,7 @@ minetest.register_node("mcl_core:bedrock", {
|
|||
S("In the End dimension, starting a fire on this block will create an eternal fire."),
|
||||
tiles = {"mcl_core_bedrock.png"},
|
||||
stack_max = 64,
|
||||
groups = {creative_breakable=1, building_block=1, material_stone=1, indestructable=1},
|
||||
groups = {creative_breakable=1, building_block=1, material_stone=1, unbreakable=1},
|
||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||
is_ground_content = false,
|
||||
on_blast = function() end,
|
||||
|
|
Loading…
Reference in New Issue