19:03:01: INFO[main]: WARNING: Mod name conflict detected:
19:03:01: INFO[main]: Already loaded: /home/guillaume/celeron55-minetest-02fb912/bin/../mods/minetest/default
19:03:01: INFO[main]: Will not load: /home/guillaume/celeron55-minetest-02fb912/bin/../games/minetest_game/mods/default
WARNING: field "tile_images": Deprecated; new name is "tiles".
WARNING: The minetest.digprop_* functions are obsolete and need to be replaced by item groups
WARNING: field "maxwear" is deprecated; should replace with uses=1/maxwear
WARNING: field "light_propagates": deprecated: determined from paramtype
WARNING: The minetest.digprop_* functions are obsolete and need to be replaced by item groups.
WARNING: field "metadata_name": deprecated: use on_add and metadata callbacks
WARNING: field "special_materials": Deprecated; new name is "special_tiles".
WARNING: field "light_propagates": deprecated: determined from paramtype
WARNING: field "wall_mounted": deprecated: use paramtype2 = 'wallmounted'
WARNING: The minetest.digprop_* functions are obsolete and need to be replaced by item groups.
@turbogus:
Faudrait lire les log plus souvent ^^
minetest.register_node("obsidian:obsidian_block", {
tiles = {"obsidian_block.png"},
inventory_image = minetest.inventorycube("obsidian_block.png"),
is_ground_content = true,
groups = {oddly_breakable_by_hand=1},
drop = "obsidian:obsidian_block",
})
print( 'Obsidian Mod Loaded! ' )
Example definition of the capabilities of a tool
-------------------------------------------------
tool_capabilities = {
full_punch_interval=1.5,
max_drop_level=1,
groupcaps={
crumbly={maxlevel=2, uses=20, times={[1]=1.60, [2]=1.20, [3]=0.80}}
}
}
This makes the tool be able to dig nodes that fullfill both of these:
- Have the **crumbly** group
- Have a **level** group less or equal to 2
Table of resulting digging times:
crumbly 0 1 2 3 4 <- level
-> 0 - - - - -
1 0.80 1.60 1.60 - -
2 0.60 1.20 1.20 - -
3 0.40 0.80 0.80 - -
level diff: 2 1 0 -1 -2
Table of resulting tool uses:
-> 0 - - - - -
1 180 60 20 - -
2 180 60 20 - -
3 180 60 20 - -
Notes:
- At crumbly=0, the node is not diggable.
- At crumbly=3, the level difference digging time divider kicks in and makes
easy nodes to be quickly breakable.
- At level > 2, the node is not diggable, because it's level > maxlevel
**Maximum level**
Tells what is the maximum level of a node of this group that the tool will
be able to dig.
**Digging times**
List of digging times for different ratings of the group, for nodes of the
maximum level.
* For example, as a lua table, ''times={2=2.00, 3=0.70}''. This would
result in the tool to be able to dig nodes that have a rating of 2 or 3
for this group, and unable to dig the rating 1, which is the toughest.
Unless there is a matching group that enables digging otherwise.
* For entities, damage equals the amount of nodes dug in the time spent
between hits, with a maximum time of ''full_punch_interval''.
Users browsing this forum: No registered users and 5 guests