Merge remote-tracking branch 'upstream/master'

This commit is contained in:
bri cassa 2022-06-25 16:53:46 +02:00
commit 156d31280a
18 changed files with 15 additions and 5 deletions

View File

@ -35,11 +35,11 @@ minetest.register_craft({
})
minetest.register_craft({
output = "trunks:twig_1 4",
recipe = {{"bushes:bushbranches2"}}
recipe = {{"bushes:bushbranches3"}}
})
minetest.register_craft({
output = "trunks:twig_1 4",
recipe = {{"bushes:bushbranches3"}}
recipe = {{"bushes:bushbranches4"}}
})
end
minetest.register_craft({ -- twigs block --> twigs

View File

@ -1,6 +1,6 @@
# Vines Mod by Bas80 (Edited by TenPlus1)
### License: MIT for code, CC for textures
### License: MIT for code, CC0 for textures
## Features
- Rope block for spawning rope that slowly drops into the deep.

View File

@ -45,9 +45,19 @@ local function on_dig(pos, node, player)
drop_item = vine_name_end
end
local wielded_item = player and player:get_wielded_item()
local wielded_item = minetest.is_player(player) and player:get_wielded_item()
if wielded_item then
wielded_item:add_wear(1)
local node_def = minetest.registered_nodes[node.name]
local dig_params = minetest.get_dig_params(
node_def.groups,
wielded_item:get_tool_capabilities(),
wielded_item:get_wear()
)
if dig_params.wear then
wielded_item:add_wear(dig_params.wear)
player:set_wielded_item(wielded_item)
end
if wielded_item:get_name() == 'vines:shears' then
drop_item = vine_name_end
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 B

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 497 B

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 B

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 B

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 201 B

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 B

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 B

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 B

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 225 B

After

Width:  |  Height:  |  Size: 528 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 B

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 B

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 B

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 B

After

Width:  |  Height:  |  Size: 284 B