0
0
Fork 0

Add several craftitems

This commit is contained in:
Wuzzy 2017-01-12 03:04:58 +01:00
parent 452ef75e8a
commit 68e773f6e7
20 changed files with 147 additions and 9 deletions

View File

@ -634,10 +634,16 @@ minetest.register_craft({
}
})
-- TODO: Remove helper recipe
minetest.register_craft({
type = 'shapeless',
output = 'default:book',
recipe = { 'default:paper', 'default:paper', 'default:paper', 'mobs:leather',
}
})
minetest.register_craft({
type = 'shapeless',
output = 'default:book',
-- FIXME: Update recipe. 3 paper 1 lether
recipe = { 'default:paper', 'default:paper', 'default:paper', 'default:paper',
}
})
@ -668,6 +674,7 @@ minetest.register_craft({
}
})
-- TODO: Remove recipe when mobs are working
minetest.register_craft({
type = "shapeless",
output = "default:gunpowder",

View File

@ -130,7 +130,15 @@ minetest.register_node("itemframes:frame",{
end,
})
-- FIXME: Replace paper with leather
minetest.register_craft({
output = 'itemframes:frame',
recipe = {
{'default:stick', 'default:stick', 'default:stick'},
{'default:stick', 'mobs:leather', 'default:stick'},
{'default:stick', 'default:stick', 'default:stick'},
}
})
-- FIXME: Remove helper recipe
minetest.register_craft({
output = 'itemframes:frame',
recipe = {

View File

@ -41,3 +41,17 @@ minetest.register_craft({
{"mcl_end:end_stone", "mcl_end:end_stone"},
}
})
minetest.register_craftitem("mcl_end:ender_eye", {
description = "Eye of Ender",
wield_image = "mcl_end_ender_eye.png",
inventory_image = "mcl_end_ender_eye.png",
stack_max = 64,
})
minetest.register_craft({
type = "shapeless",
output = "mcl_end:ender_eye",
recipe = {"mobs:blaze_powder", "mcl_ender_pearl:ender_pearl"},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 804 B

22
mods/mcl_potions/init.lua Normal file
View File

@ -0,0 +1,22 @@
minetest.register_craftitem("mcl_potions:fermented_spider_eye", {
description = "Fermented Spider Eye",
wield_image = "mcl_potions_spider_eye_fermented.png",
inventory_image = "mcl_potions_spider_eye_fermented.png",
stack_max = 64,
})
minetest.register_craft({
type = "shapeless",
output = "mcl_potions:fermented_spider_eye",
recipe = { "farming:mushroom_brown", "default:sugar", "mobs:spider_eye" },
})
-- TODO: Get texture
--[[
minetest.register_craftitem("mcl_potions:dragon_breath", {
description = "Dragon's Breath",
wield_image = "mcl_potions_dragon_breath.png",
inventory_image = "mcl_potions_dragon_breath.png",
stack_max = 64,
})
]]

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 B

View File

@ -17,8 +17,8 @@ mobs:register_mob("mobs:creeper", {
drops = {
{name = "default:gunpowder",
chance = 1,
min = 1,
max = 3,},
min = 0,
max = 2,},
},
armor = 70,
drawtype = "front",

View File

@ -49,7 +49,6 @@ minetest.register_craftitem("mobs:zombie", {
end,
})
minetest.register_craftitem("mobs:spider", {
description = "Spawn Spider",
inventory_image = "spawn_spider.png",
@ -90,25 +89,105 @@ minetest.register_craftitem("mobs:creeper", {
minetest.register_craftitem("mobs:rotten_flesh", {
description = "Rotten Flesh",
inventory_image = "rotten_flesh.png",
wield_image = "rotten_flesh.png",
on_use = minetest.item_eat(2),
stack_max = 64,
})
minetest.register_craftitem("mobs:meat_raw_sheep", {
description = "Raw Mutton",
inventory_image = "mutton_raw.png",
wield_image = "mutton_raw.png",
on_use = minetest.item_eat(2),
stack_max = 64,
})
minetest.register_craftitem("mobs:meat_cooked_sheep", {
description = "Cooked Mutton",
inventory_image = "mutton_cooked.png",
wield_image = "mutton_cooked.png",
on_use = minetest.item_eat(4),
stack_max = 64,
})
minetest.register_craftitem("mobs:spider_eye", {
description = "Spider Eye",
inventory_image = "spider_eye.png",
wield_image = "spider_eye.png",
on_use = minetest.item_eat(2),
stack_max = 64,
})
minetest.register_craftitem("mobs:blaze_rod", {
description = "Blaze Rod",
wield_image = "mobs_blaze_rod.png",
inventory_image = "mobs_blaze_rod.png",
stack_max = 64,
})
minetest.register_craftitem("mobs:blaze_powder", {
description = "Blaze Powder",
wield_image = "mobs_blaze_powder.png",
inventory_image = "mobs_blaze_powder.png",
stack_max = 64,
})
minetest.register_craftitem("mobs:magma_cream", {
description = "Magma Cream",
wield_image = "mobs_magma_cream.png",
inventory_image = "mobs_magma_cream.png",
stack_max = 64,
})
minetest.register_craftitem("mobs:ghast_tear", {
description = "Ghast Tear",
wield_image = "mobs_ghast_tear.png",
inventory_image = "mobs_ghast_tear.png",
stack_max = 64,
})
minetest.register_craftitem("mobs:nether_star", {
description = "Nether Star",
wield_image = "mobs_nether_star.png",
inventory_image = "mobs_nether_star.png",
stack_max = 64,
})
minetest.register_craftitem("mobs:leather", {
description = "Leather",
wield_image = "mobs_leather.png",
inventory_image = "mobs_leather.png",
stack_max = 64,
})
minetest.register_craftitem("mobs:rabbit_hide", {
description = "Rabbit Hide",
wield_image = "mobs_rabbit_hide.png",
inventory_image = "mobs_rabbit_hide.png",
stack_max = 64,
})
-----------
-- Crafting
-----------
minetest.register_craft({
output = "mobs:leather",
recipe = {
{ "mobs:rabbit_hide", "mobs:rabbit_hide" },
{ "mobs:rabbit_hide", "mobs:rabbit_hide" },
}
})
minetest.register_craft({
output = "mobs:blaze_powder 2",
recipe = {{"mobs:blaze_rod"}},
})
minetest.register_craft({
type = "shapeless",
output = "mobs:magma_cream",
recipe = {"mobs:blaze_powder", "mesecons_materials:glue"},
})
minetest.register_craft({

View File

@ -12,7 +12,7 @@ mobs:register_mob("mobs:sheep", {
armor = 100,
drops = {
{name = "mobs:meat_raw_sheep",
chance = 2,
chance = 1,
min = 1,
max = 2,},
},

View File

@ -29,8 +29,8 @@ mobs:register_mob("mobs:slime", {
drops = {
{name = "mesecons_materials:glue",
chance = 1,
min = 1,
max = 4,},
min = 0,
max = 2,},
},
armor = 100,
drawtype = "front",

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -80,7 +80,15 @@ end
minetest.register_entity("throwing:arrow_entity", THROWING_ARROW_ENTITY)
-- FIXME: Replace paper with feather
minetest.register_craft({
output = 'throwing:arrow 4',
recipe = {
{'default:flint'},
{'default:stick'},
{'mobs:feather'}
}
})
-- FIXME: Helper recipe
minetest.register_craft({
output = 'throwing:arrow 4',
recipe = {