Merge pull request #5 from DonBatman/master

Fixed depreciated
This commit is contained in:
Bas 2016-06-19 00:41:43 +02:00 committed by GitHub
commit cf34bfe590
4 changed files with 12 additions and 12 deletions

@ -33,7 +33,7 @@ vines.register_vine = function( name, defs, biome )
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
buildable_to = true, buildable_to = true,
tile_images = { vine_image_end }, tiles = { vine_image_end },
drawtype = drawtype, drawtype = drawtype,
inventory_image = vine_image_end, inventory_image = vine_image_end,
groups = groups, groups = groups,
@ -71,7 +71,7 @@ vines.register_vine = function( name, defs, biome )
paramtype = "light", paramtype = "light",
paramtype2 = "wallmounted", paramtype2 = "wallmounted",
buildable_to = true, buildable_to = true,
tile_images = { vine_image_middle }, tiles = { vine_image_middle },
wield_image = vine_image_middle, wield_image = vine_image_middle,
drawtype = drawtype, drawtype = drawtype,
inventory_image = vine_image_middle, inventory_image = vine_image_middle,
@ -94,7 +94,7 @@ vines.register_vine = function( name, defs, biome )
biome_lib:spawn_on_surfaces( biome ) biome_lib:spawn_on_surfaces( biome )
local override_nodes = function( nodes, defs ) local override_nodes = function( nodes, defs )
function override( index, registered ) local function override( index, registered )
local node = nodes[ index ] local node = nodes[ index ]
if index > #nodes then return registered end if index > #nodes then return registered end
if minetest.registered_nodes[node] then if minetest.registered_nodes[node] then

@ -2,7 +2,7 @@ minetest.register_node("vines:rope_block", {
description = "Rope", description = "Rope",
sunlight_propagates = true, sunlight_propagates = true,
paramtype = "light", paramtype = "light",
tile_images = { tiles = {
"default_wood.png^vines_rope.png", "default_wood.png^vines_rope.png",
"default_wood.png^vines_rope.png", "default_wood.png^vines_rope.png",
"default_wood.png", "default_wood.png",
@ -36,7 +36,7 @@ minetest.register_node("vines:rope", {
sunlight_propagates = true, sunlight_propagates = true,
paramtype = "light", paramtype = "light",
drop = "", drop = "",
tile_images = { "vines_rope.png" }, tiles = { "vines_rope.png" },
drawtype = "plantlike", drawtype = "plantlike",
groups = {flammable=2, not_in_creative_inventory=1}, groups = {flammable=2, not_in_creative_inventory=1},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
@ -53,7 +53,7 @@ minetest.register_node("vines:rope_end", {
sunlight_propagates = true, sunlight_propagates = true,
paramtype = "light", paramtype = "light",
drop = "", drop = "",
tile_images = { "vines_rope_end.png" }, tiles = { "vines_rope_end.png" },
drawtype = "plantlike", drawtype = "plantlike",
groups = {flammable=2, not_in_creative_inventory=1}, groups = {flammable=2, not_in_creative_inventory=1},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),

@ -1,12 +1,12 @@
vines.recipes['rope_block'] = { vines.recipes['rope_block'] = {
{'', 'default:wood', ''}, {'', 'group:wood', ''},
{'', 'group:vines', ''}, {'', 'group:vines', ''},
{'', 'group:vines', ''} {'', 'group:vines', ''}
} }
vines.recipes['shears'] = { vines.recipes['shears'] = {
{'', 'default:steel_ingot', ''}, {'', 'default:steel_ingot', ''},
{'default:stick', 'default:wood', 'default:steel_ingot'}, {'group:stick', 'group:wood', 'default:steel_ingot'},
{'', '', 'default:stick'} {'', '', 'group:stick'}
} }

@ -1,15 +1,15 @@
minetest.register_tool("vines:shears", { minetest.register_tool("vines:shears", {
description = "Shears", description = "Shears",
inventory_image = "vines_shears.png", inventory_image = "vines_shears.png",
wield_image = "shears.png", wield_image = "vines_shears.png",
stack_max = 1, stack_max = 1,
max_drop_level=3, max_drop_level=3,
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1.0, full_punch_interval = 1.0,
max_drop_level=0, max_drop_level=0,
groupcaps={ groupcaps={
snappy={times={[3]=0.2}, maxwear=0.05, maxlevel=3}, snappy={times={[3]=0.2}, uses=60, maxlevel=3},
wool={times={[3]=0.2}, maxwear=0.05, maxlevel=3} wool={times={[3]=0.2}, uses=60, maxlevel=3}
} }
}, },
}) })