4 Commits

Author SHA1 Message Date
156d31280a Merge remote-tracking branch 'upstream/master' 2022-06-25 16:53:46 +02:00
bde2082ee1 Texture update for vines to CC0 (#21)
* Texture update for vines to CC0

recreated the vines and rope textures and releasing them under CC0

* Minor tweaks to textures
2022-06-24 14:32:09 +03:00
d33907ca75 Fix typo in crafting recipes in trunks
Fixes #24 
Co-authored-by: A S Lewis <aslewis@cpan.org>
2022-06-08 22:03:52 +10:00
244d5da0e2 wear too when breaking vines (#22) 2022-05-28 17:35:42 -04:00
18 changed files with 15 additions and 5 deletions

View File

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

View File

@ -1,6 +1,6 @@
# Vines Mod by Bas80 (Edited by TenPlus1) # Vines Mod by Bas80 (Edited by TenPlus1)
### License: MIT for code, CC for textures ### License: MIT for code, CC0 for textures
## Features ## Features
- Rope block for spawning rope that slowly drops into the deep. - 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 drop_item = vine_name_end
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 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 if wielded_item:get_name() == 'vines:shears' then
drop_item = vine_name_end drop_item = vine_name_end
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