Fixed damages and recipes, added simmetric

This commit is contained in:
echoes91 2015-03-11 17:45:10 +01:00
parent f7d5c7d449
commit f08ecd2c70
11 changed files with 124 additions and 15 deletions

View File

@ -62,6 +62,15 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = 'throwing:bow_wood',
recipe = {
{'', 'group:wood', 'farming:string'},
{'group:wood', '', 'farming:string'},
{'', 'group:wood', 'farming:string'},
}
})
minetest.register_tool("throwing:bow_steel", {
description = "Steel Bow",
inventory_image = "throwing_bow_steel.png",
@ -88,6 +97,15 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = 'throwing:bow_steel',
recipe = {
{'', 'default:steel_ingot', 'farming:string'},
{'default:steel_ingot', '', 'farming:string'},
{'', 'default:steel_ingot', 'farming:string'},
}
})
minetest.register_tool("throwing:bow_composite", {
description = "Composite Bow",
inventory_image = "throwing_bow_composite.png",
@ -114,6 +132,15 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = 'throwing:bow_composite',
recipe = {
{'group:wood', 'default:steel_ingot', 'farming:string'},
{'default:bronze_ingot', 'group:wood', 'farming:string'},
{'group:wood', 'default:steel_ingot', 'farming:string'},
}
})
minetest.register_tool("throwing:bow_gold", {
description = "Golden Bow",
inventory_image = "throwing_bow_gold.png",
@ -132,10 +159,19 @@ minetest.register_tool("throwing:bow_gold", {
})
minetest.register_craft({
output = 'throwing:bow_composite',
output = 'throwing:bow_gold',
recipe = {
{'farming:string', 'default:gold_ingot', ''},
{'farming:string', 'group:wood', 'default:gold_ingot'},
{'farming:string', 'default:steel_ingot', ''},
{'farming:string', 'default:gold_ingot', ''},
}
})
minetest.register_craft({
output = 'throwing:bow_gold',
recipe = {
{'', 'default:gold_ingot', 'farming:string'},
{'default:gold_ingot', 'group:wood', 'farming:string'},
{'', 'default:gold_ingot', 'farming:string'},
}
})

View File

@ -91,3 +91,10 @@ minetest.register_craft({
{'default:stick', 'default:stick', 'default:shovel_steel'},
}
})
minetest.register_craft({
output = 'throwing:arrow_build',
recipe = {
{'default:shovel_steel', 'default:stick', 'default:stick'},
}
})

View File

@ -49,7 +49,7 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
for k, obj in pairs(objs) do
if obj:get_luaentity() ~= nil then
if obj:get_luaentity().name ~= "throwing:arrow_diamond_entity" and obj:get_luaentity().name ~= "__builtin:item" then
local damage = 6
local damage = 5
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=damage},
@ -88,3 +88,10 @@ minetest.register_craft({
{'default:stick', 'default:stick', 'default:diamond'},
}
})
minetest.register_craft({
output = 'throwing:arrow_diamond 9',
recipe = {
{'default:diamond', 'default:stick', 'default:stick'},
}
})

View File

@ -91,3 +91,10 @@ minetest.register_craft({
{'default:stick', 'default:stick', 'default:pick_steel'},
}
})
minetest.register_craft({
output = 'throwing:arrow_dig',
recipe = {
{'default:pick_steel', 'default:stick', 'default:stick'},
}
})

View File

@ -80,16 +80,6 @@ end
minetest.register_entity("throwing:arrow_fire_entity", THROWING_ARROW_ENTITY)
minetest.register_craft({
output = 'throwing:arrow_fire 4',
recipe = {
{'default:stick', 'default:stick', 'bucket:bucket_lava'},
},
replacements = {
{"bucket:bucket_lava", "bucket:bucket_empty"}
}
})
minetest.register_node("throwing:light", {
drawtype = "airlike",
paramtype = "light",
@ -113,3 +103,23 @@ minetest.register_abm({
minetest.remove_node(pos)
end
})
minetest.register_craft({
output = 'throwing:arrow_fire 4',
recipe = {
{'default:stick', 'default:stick', 'bucket:bucket_lava'},
},
replacements = {
{"bucket:bucket_lava", "bucket:bucket_empty"}
}
})
minetest.register_craft({
output = 'throwing:arrow_fire 4',
recipe = {
{'bucket:bucket_lava', 'default:stick', 'default:stick'},
},
replacements = {
{"bucket:bucket_lava", "bucket:bucket_empty"}
}
})

View File

@ -49,7 +49,7 @@ THROWING_ARROW_ENTITY.on_step = function(self, dtime)
for k, obj in pairs(objs) do
if obj:get_luaentity() ~= nil then
if obj:get_luaentity().name ~= "throwing:arrow_obsidian_entity" and obj:get_luaentity().name ~= "__builtin:item" then
local damage = 4
local damage = 6
obj:punch(self.object, 1.0, {
full_punch_interval=1.0,
damage_groups={fleshy=damage},
@ -88,3 +88,10 @@ minetest.register_craft({
{'default:stick', 'default:stick', 'default:obsidian_shard'},
}
})
minetest.register_craft({
output = 'throwing:arrow_obsidian',
recipe = {
{'default:obsidian_shard', 'default:stick', 'default:stick'},
}
})

View File

@ -88,3 +88,10 @@ minetest.register_craft({
{'default:stick', 'default:stick', 'default:steel_ingot'},
}
})
minetest.register_craft({
output = 'throwing:arrow_steel 16',
recipe = {
{'default:steel_ingot', 'default:stick', 'default:stick'},
}
})

View File

@ -85,6 +85,13 @@ minetest.register_entity("throwing:arrow_stone_entity", THROWING_ARROW_ENTITY)
minetest.register_craft({
output = 'throwing:arrow_stone 16',
recipe = {
{'default:stick', 'default:stick', 'default:cobble'},
{'default:stick', 'default:stick', 'group:stone'},
}
})
minetest.register_craft({
output = 'throwing:arrow_stone 16',
recipe = {
{'group:stone', 'default:stick', 'default:stick'},
}
})

View File

@ -80,3 +80,10 @@ minetest.register_craft({
{'default:stick', 'default:stick', 'default:mese_crystal_fragment'}
}
})
minetest.register_craft({
output = 'throwing:arrow_teleport',
recipe = {
{'default:mese_crystal_fragment', 'default:stick', 'default:stick'}
}
})

View File

@ -277,3 +277,10 @@ minetest.register_craft({
{'default:stick', 'default:stick', 'tnt:tnt'},
}
})
minetest.register_craft({
output = 'throwing:arrow_tnt',
recipe = {
{'tnt:tnt', 'default:stick', 'default:stick'},
}
})

View File

@ -132,3 +132,10 @@ minetest.register_craft({
{'default:stick', 'default:stick', 'default:coal'},
}
})
minetest.register_craft({
output = 'throwing:arrow_torch 4',
recipe = {
{'default:coal', 'default:stick', 'default:stick'},
}
})