Snowball and crafting recipes fixes

This commit is contained in:
MoNTE48 2019-07-07 20:40:09 +02:00
parent 5ecff2d57a
commit f53fb1a1ec
8 changed files with 304 additions and 258 deletions

View File

@ -1,438 +1,412 @@
-- mods/default/crafting.lua -- mods/default/crafting.lua
minetest.register_craft({ minetest.register_craft({
output = 'default:wood 4', output = "default:wood 4",
recipe = { recipe = {
{'default:tree'}, {"default:tree"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:junglewood 4', output = "default:junglewood 4",
recipe = { recipe = {
{'default:jungletree'}, {"default:jungletree"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:pine_wood 4', output = "default:pine_wood 4",
recipe = { recipe = {
{'default:pine_tree'}, {"default:pine_tree"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:acacia_wood 4', output = "default:acacia_wood 4",
recipe = { recipe = {
{'default:acacia_tree'}, {"default:acacia_tree"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:mossycobble', output = "default:mossycobble",
recipe = { recipe = {
{'default:cobble', 'default:vine'}, {"default:cobble", "default:vine"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:stonebrickmossy', output = "default:stonebrickmossy",
recipe = { recipe = {
{'default:stonebrick', 'default:vine'}, {"default:stonebrick", "default:vine"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:stick 4', output = "default:stick 4",
recipe = { recipe = {
{'group:wood'}, {"group:wood"},
{'group:wood'}, {"group:wood"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'signs:sign 3', output = "default:torch 4",
recipe = { recipe = {
{'group:wood', 'group:wood', 'group:wood'}, {"default:coal_lump"},
{'group:wood', 'group:wood', 'group:wood'}, {"default:stick"},
{'', 'default:stick', ''},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:torch 4', output = "default:torch 4",
recipe = { recipe = {
{'default:coal_lump'}, {"default:charcoal_lump"},
{'default:stick'}, {"default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:torch 4', output = "default:pick_wood",
recipe = { recipe = {
{'default:charcoal_lump'}, {"group:wood", "group:wood", "group:wood"},
{'default:stick'}, {"", "default:stick", ""},
{"", "default:stick", ""},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:pick_wood', output = "default:pick_stone",
recipe = { recipe = {
{'group:wood', 'group:wood', 'group:wood'}, {"group:stone", "group:stone", "group:stone"},
{'', 'default:stick', ''}, {"", "default:stick", ""},
{'', 'default:stick', ''}, {"", "default:stick", ""},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:pick_stone', output = "default:pick_steel",
recipe = { recipe = {
{'group:stone', 'group:stone', 'group:stone'}, {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{'', 'default:stick', ''}, {"", "default:stick", ""},
{'', 'default:stick', ''}, {"", "default:stick", ""},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:pick_steel', output = "default:pick_gold",
recipe = { recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'}, {"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
{'', 'default:stick', ''}, {"", "default:stick", ""},
{'', 'default:stick', ''}, {"", "default:stick", ""},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:pick_gold', output = "default:diamondblock",
recipe = { recipe = {
{'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'}, {"default:diamond", "default:diamond", "default:diamond"},
{'', 'default:stick', ''}, {"default:diamond", "default:diamond", "default:diamond"},
{'', 'default:stick', ''}, {"default:diamond", "default:diamond", "default:diamond"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:diamondblock', output = "default:diamond 9",
recipe = { recipe = {
{'default:diamond', 'default:diamond', 'default:diamond'}, {"default:diamondblock"},
{'default:diamond', 'default:diamond', 'default:diamond'},
{'default:diamond', 'default:diamond', 'default:diamond'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:diamond 9', output = "default:pick_diamond",
recipe = { recipe = {
{'default:diamondblock'}, {"default:diamond", "default:diamond", "default:diamond"},
{"", "default:stick", ""},
{"", "default:stick", ""},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:pick_diamond', output = "default:shovel_wood",
recipe = { recipe = {
{'default:diamond', 'default:diamond', 'default:diamond'}, {"group:wood"},
{'', 'default:stick', ''}, {"default:stick"},
{'', 'default:stick', ''}, {"default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:shovel_wood', output = "default:shovel_stone",
recipe = { recipe = {
{'group:wood'}, {"group:stone"},
{'default:stick'}, {"default:stick"},
{'default:stick'}, {"default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:shovel_stone', output = "default:shovel_steel",
recipe = { recipe = {
{'group:stone'}, {"default:steel_ingot"},
{'default:stick'}, {"default:stick"},
{'default:stick'}, {"default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:shovel_steel', output = "default:shovel_gold",
recipe = { recipe = {
{'default:steel_ingot'}, {"default:gold_ingot"},
{'default:stick'}, {"default:stick"},
{'default:stick'}, {"default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:shovel_gold', output = "default:shovel_diamond",
recipe = { recipe = {
{'default:gold_ingot'}, {"default:diamond"},
{'default:stick'}, {"default:stick"},
{'default:stick'}, {"default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:shovel_diamond', output = "default:axe_wood",
recipe = { recipe = {
{'default:diamond'}, {"group:wood", "group:wood"},
{'default:stick'}, {"group:wood", "default:stick"},
{'default:stick'}, {"", "default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:axe_wood', output = "default:axe_stone",
recipe = { recipe = {
{'group:wood', 'group:wood'}, {"group:stone", "group:stone"},
{'group:wood', 'default:stick'}, {"group:stone", "default:stick"},
{'', 'default:stick'}, {"", "default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:axe_stone', output = "default:axe_steel",
recipe = { recipe = {
{'group:stone', 'group:stone'}, {"default:steel_ingot", "default:steel_ingot"},
{'group:stone', 'default:stick'}, {"default:steel_ingot", "default:stick"},
{'', 'default:stick'}, {"", "default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:axe_steel', output = "default:axe_gold",
recipe = { recipe = {
{'default:steel_ingot', 'default:steel_ingot'}, {"default:gold_ingot", "default:gold_ingot"},
{'default:steel_ingot', 'default:stick'}, {"default:gold_ingot", "default:stick"},
{'', 'default:stick'}, {"", "default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:axe_gold', output = "default:axe_diamond",
recipe = { recipe = {
{'default:gold_ingot', 'default:gold_ingot'}, {"default:diamond", "default:diamond"},
{'default:gold_ingot', 'default:stick'}, {"default:diamond", "default:stick"},
{'', 'default:stick'}, {"", "default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:axe_diamond', output = "default:sword_wood",
recipe = { recipe = {
{'default:diamond', 'default:diamond'}, {"group:wood"},
{'default:diamond', 'default:stick'}, {"group:wood"},
{'', 'default:stick'}, {"default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:sword_wood', output = "default:sword_stone",
recipe = { recipe = {
{'group:wood'}, {"group:stone"},
{'group:wood'}, {"group:stone"},
{'default:stick'}, {"default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:sword_stone', output = "default:sword_steel",
recipe = { recipe = {
{'group:stone'}, {"default:steel_ingot"},
{'group:stone'}, {"default:steel_ingot"},
{'default:stick'}, {"default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:sword_steel', output = "default:sword_gold",
recipe = { recipe = {
{'default:steel_ingot'}, {"default:gold_ingot"},
{'default:steel_ingot'}, {"default:gold_ingot"},
{'default:stick'}, {"default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:sword_gold', output = "default:sword_diamond",
recipe = { recipe = {
{'default:gold_ingot'}, {"default:diamond"},
{'default:gold_ingot'}, {"default:diamond"},
{'default:stick'}, {"default:stick"},
}
})
minetest.register_craft({
output = 'default:sword_diamond',
recipe = {
{'default:diamond'},
{'default:diamond'},
{'default:stick'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "default:pole", output = "default:pole",
recipe = { recipe = {
{'','','default:stick'}, {"","","default:stick"},
{'','default:stick','farming:string'}, {"","default:stick","farming:string"},
{'default:stick','','farming:string'}, {"default:stick","","farming:string"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:chest', output = "default:chest",
recipe = { recipe = {
{'group:wood', 'group:wood', 'group:wood'}, {"group:wood", "group:wood", "group:wood"},
{'group:wood', '', 'group:wood'}, {"group:wood", "", "group:wood"},
{'group:wood', 'group:wood', 'group:wood'}, {"group:wood", "group:wood", "group:wood"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:furnace', output = "default:furnace",
recipe = { recipe = {
{'group:stone', 'group:stone', 'group:stone'}, {"group:stone", "group:stone", "group:stone"},
{'group:stone', '', 'group:stone'}, {"group:stone", "", "group:stone"},
{'group:stone', 'group:stone', 'group:stone'}, {"group:stone", "group:stone", "group:stone"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:coalblock', output = "default:coalblock",
recipe = { recipe = {
{'default:coal_lump', 'default:coal_lump', 'default:coal_lump'}, {"default:coal_lump", "default:coal_lump", "default:coal_lump"},
{'default:coal_lump', 'default:coal_lump', 'default:coal_lump'}, {"default:coal_lump", "default:coal_lump", "default:coal_lump"},
{'default:coal_lump', 'default:coal_lump', 'default:coal_lump'}, {"default:coal_lump", "default:coal_lump", "default:coal_lump"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:coal_lump 9', output = "default:coal_lump 9",
recipe = { recipe = {
{'default:coalblock'}, {"default:coalblock"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:haybale', output = "default:steelblock",
recipe = { recipe = {
{'farming:wheat_harvested', 'farming:wheat_harvested', 'farming:wheat_harvested'}, {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{'farming:wheat_harvested', 'farming:wheat_harvested', 'farming:wheat_harvested'}, {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
{'farming:wheat_harvested', 'farming:wheat_harvested', 'farming:wheat_harvested'}, {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'farming:wheat_harvested 9', output = "default:steel_ingot 9",
recipe = { recipe = {
{'default:haybale'}, {"default:steelblock"},
}
})
minetest.register_craft({
output = 'default:steelblock',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:steel_ingot 9', output = "default:goldblock",
recipe = { recipe = {
{'default:steelblock'}, {"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:goldblock', output = "default:gold_ingot 9",
recipe = { recipe = {
{'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'}, {"default:goldblock"},
{'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
{'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:gold_ingot 9', output = "default:sandstone",
recipe = { recipe = {
{'default:goldblock'}, {"group:sand", "group:sand"},
{"group:sand", "group:sand"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:sandstone', output = "default:clay",
recipe = { recipe = {
{'group:sand', 'group:sand'}, {"default:clay_lump", "default:clay_lump"},
{'group:sand', 'group:sand'}, {"default:clay_lump", "default:clay_lump"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:clay', output = "default:brick",
recipe = { recipe = {
{'default:clay_lump', 'default:clay_lump'}, {"default:clay_brick", "default:clay_brick"},
{'default:clay_lump', 'default:clay_lump'}, {"default:clay_brick", "default:clay_brick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:brick', output = "default:clay_brick 4",
recipe = { recipe = {
{'default:clay_brick', 'default:clay_brick'}, {"default:brick"},
{'default:clay_brick', 'default:clay_brick'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:clay_brick 4', output = "default:paper",
recipe = { recipe = {
{'default:brick'}, {"default:sugarcane", "default:sugarcane", "default:sugarcane"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:paper', output = "default:book",
recipe = { recipe = {
{'default:sugarcane', 'default:sugarcane', 'default:sugarcane'}, {"default:paper"},
{"default:paper"},
{"default:paper"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:book', output = "default:bookshelf",
recipe = { recipe = {
{'default:paper'}, {"group:wood", "group:wood", "group:wood"},
{'default:paper'}, {"default:book", "default:book", "default:book"},
{'default:paper'}, {"group:wood", "group:wood", "group:wood"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:bookshelf', output = "default:ladder",
recipe = { recipe = {
{'group:wood', 'group:wood', 'group:wood'}, {"default:stick", "", "default:stick"},
{'default:book', 'default:book', 'default:book'}, {"default:stick", "default:stick", "default:stick"},
{'group:wood', 'group:wood', 'group:wood'}, {"default:stick", "", "default:stick"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:ladder', output = "default:stonebrick",
recipe = { recipe = {
{'default:stick', '', 'default:stick'}, {"default:stone", "default:stone"},
{'default:stick', 'default:stick', 'default:stick'}, {"default:stone", "default:stone"},
{'default:stick', '', 'default:stick'},
}
})
minetest.register_craft({
output = 'default:stonebrick',
recipe = {
{'default:stone', 'default:stone'},
{'default:stone', 'default:stone'},
} }
}) })
@ -440,62 +414,39 @@ minetest.register_craft({
type = "shapeless", type = "shapeless",
output = "default:gunpowder", output = "default:gunpowder",
recipe = { recipe = {
'default:sand', "default:sand",
'default:gravel', "default:gravel",
}
})
minetest.register_craft({
output = 'dye:white 3',
recipe = {
{'default:bone'},
}
})
minetest.register_craft({
output = 'default:lapisblock',
recipe = {
{'dye:blue', 'dye:blue', 'dye:blue'},
{'dye:blue', 'dye:blue', 'dye:blue'},
{'dye:blue', 'dye:blue', 'dye:blue'},
}
})
minetest.register_craft({
output = 'dye:blue 9',
recipe = {
{'default:lapisblock'},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "default:emeraldblock", output = "default:emeraldblock",
recipe = { recipe = {
{'default:emerald', 'default:emerald', 'default:emerald'}, {"default:emerald", "default:emerald", "default:emerald"},
{'default:emerald', 'default:emerald', 'default:emerald'}, {"default:emerald", "default:emerald", "default:emerald"},
{'default:emerald', 'default:emerald', 'default:emerald'}, {"default:emerald", "default:emerald", "default:emerald"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:emerald 9', output = "default:emerald 9",
recipe = { recipe = {
{'default:emeraldblock'}, {"default:emeraldblock"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = "default:glowstone", output = "default:glowstone",
recipe = { recipe = {
{'default:glowstone_dust', 'default:glowstone_dust'}, {"default:glowstone_dust", "default:glowstone_dust"},
{'default:glowstone_dust', 'default:glowstone_dust'}, {"default:glowstone_dust", "default:glowstone_dust"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:glowstone_dust 4', output = "default:glowstone_dust 4",
recipe = { recipe = {
{'default:glowstone'}, {"default:glowstone"},
} }
}) })
@ -503,7 +454,7 @@ minetest.register_craft({
output = "default:apple_gold", output = "default:apple_gold",
recipe = { recipe = {
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"}, {"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
{"default:gold_ingot", 'default:apple', "default:gold_ingot"}, {"default:gold_ingot", "default:apple", "default:gold_ingot"},
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"}, {"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
} }
}) })
@ -516,34 +467,34 @@ minetest.register_craft({
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:snowblock', output = "default:snowblock",
recipe = { recipe = {
{'default:snow', 'default:snow', 'default:snow'}, {"default:snowball", "default:snowball", "default:snowball"},
{'default:snow', 'default:snow', 'default:snow'}, {"default:snowball", "default:snowball", "default:snowball"},
{'default:snow', 'default:snow', 'default:snow'}, {"default:snowball", "default:snowball", "default:snowball"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:snow 9', output = "default:snowball 9",
recipe = { recipe = {
{'default:snowblock'}, {"default:snowblock"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:quartz_block', output = "default:quartz_block",
recipe = { recipe = {
{'default:quartz_crystal', 'default:quartz_crystal'}, {"default:quartz_crystal", "default:quartz_crystal"},
{'default:quartz_crystal', 'default:quartz_crystal'}, {"default:quartz_crystal", "default:quartz_crystal"},
} }
}) })
minetest.register_craft({ minetest.register_craft({
output = 'default:quartz_pillar 2', output = "default:quartz_pillar 2",
recipe = { recipe = {
{'default:quartz_block'}, {"default:quartz_block"},
{'default:quartz_block'}, {"default:quartz_block"},
} }
}) })
@ -631,10 +582,6 @@ minetest.register_craft({
recipe = "default:stonebrick", recipe = "default:stonebrick",
}) })
minetest.register_craft({
output = "farming:string",
recipe = {{"default:paper", "default:paper"}},
})
-- --
-- Fuels -- Fuels
@ -646,12 +593,6 @@ minetest.register_craft({
burntime = 15, burntime = 15,
}) })
minetest.register_craft({
type = "fuel",
recipe = "default:bookshelf",
burntime = 15,
})
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "default:fence_wood", recipe = "default:fence_wood",
@ -664,12 +605,30 @@ minetest.register_craft({
burntime = 15, burntime = 15,
}) })
minetest.register_craft({
type = "fuel",
recipe = "group:leaves",
burntime = 5,
})
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "bucket:bucket_lava", recipe = "bucket:bucket_lava",
burntime = 1000, burntime = 1000,
}) })
minetest.register_craft({
type = "fuel",
recipe = "default:bookshelf",
burntime = 30,
})
minetest.register_craft({
type = "fuel",
recipe = "default:torch",
burntime = 7,
})
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "default:chest", recipe = "default:chest",
@ -708,18 +667,54 @@ minetest.register_craft({
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "default:stick", recipe = "default:chest",
burntime = 15,
})
minetest.register_craft({
type = "fuel",
recipe = "default:book",
burntime = 5, burntime = 5,
}) })
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "workbench:workbench", recipe = "default:book_written",
burntime = 15, burntime = 5,
}) })
minetest.register_craft({ minetest.register_craft({
type = "fuel", type = "fuel",
recipe = "default:chest", recipe = "default:dry_shrub",
burntime = 15, burntime = 5,
})
minetest.register_craft({
type = "fuel",
recipe = "group:stick",
burntime = 3,
})
minetest.register_craft({
type = "fuel",
recipe = "default:pick_wood",
burntime = 6,
})
minetest.register_craft({
type = "fuel",
recipe = "default:shovel_wood",
burntime = 4,
})
minetest.register_craft({
type = "fuel",
recipe = "default:axe_wood",
burntime = 6,
})
minetest.register_craft({
type = "fuel",
recipe = "default:sword_wood",
burntime = 5,
}) })

View File

@ -254,3 +254,12 @@ minetest.register_craftitem("default:flint", {
description = "Flint", description = "Flint",
inventory_image = "default_flint.png" inventory_image = "default_flint.png"
}) })
minetest.register_craftitem("default:snowball", {
description = "Snowball",
inventory_image = "default_snowball.png",
stack_max = 16,
groups = {flammable = 3},
on_use = default.snow_shoot_snowball
})

View File

@ -574,7 +574,7 @@ function default.snow_shoot_snowball(itemstack, thrower, pointed_thing)
if not minetest.is_valid_pos(playerpos) then if not minetest.is_valid_pos(playerpos) then
return return
end end
local obj = minetest.item_throw("default:snow", thrower, 19, -3, local obj = minetest.item_throw("default:snowball", thrower, 19, -3,
snowball_impact) snowball_impact)
if obj then if obj then
obj:set_properties({ obj:set_properties({

View File

@ -210,8 +210,6 @@ minetest.register_node("default:hardened_clay", {
minetest.register_node("default:snow", { minetest.register_node("default:snow", {
description = "Snow", description = "Snow",
tiles = {"default_snow.png"}, tiles = {"default_snow.png"},
inventory_image = "default_snowball.png",
wield_image = "default_snowball.png",
paramtype = "light", paramtype = "light",
buildable_to = true, buildable_to = true,
floodable = true, floodable = true,
@ -223,8 +221,9 @@ minetest.register_node("default:snow", {
{-0.5, -0.5, -0.5, 0.5, -0.5+2/16, 0.5}, {-0.5, -0.5, -0.5, 0.5, -0.5+2/16, 0.5},
}, },
}, },
groups = {crumbly = 3, falling_node = 1, snowy = 1, puts_out_fire = 1, misc = 1, speed = -30}, groups = {crumbly = 3, falling_node = 1, snowy = 1, puts_out_fire = 1, misc = 1, speed = -30, not_in_creative_inventory = 1},
sounds = default.node_sound_snow_defaults(), sounds = default.node_sound_snow_defaults(),
drop = "default:snowball",
on_use = default.snow_shoot_snowball, on_use = default.snow_shoot_snowball,
on_construct = function(pos) on_construct = function(pos)
pos.y = pos.y - 1 pos.y = pos.y - 1
@ -239,7 +238,7 @@ minetest.register_node("default:snowblock", {
tiles = {"default_snow.png"}, tiles = {"default_snow.png"},
groups = {crumbly = 3, cools_lava = 1, snowy = 1, speed = -30}, groups = {crumbly = 3, cools_lava = 1, snowy = 1, speed = -30},
sounds = default.node_sound_snow_defaults(), sounds = default.node_sound_snow_defaults(),
drop = "default:snow 4", drop = "default:snowball 4",
on_construct = function(pos) on_construct = function(pos)
pos.y = pos.y - 1 pos.y = pos.y - 1
if minetest.get_node(pos).name == "default:dirt_with_grass" then if minetest.get_node(pos).name == "default:dirt_with_grass" then

View File

@ -89,3 +89,26 @@ for _, mix in pairs(dye_recipes) do
recipe = {'dye:' .. mix[1], 'dye:' .. mix[2]}, recipe = {'dye:' .. mix[1], 'dye:' .. mix[2]},
}) })
end end
minetest.register_craft({
output = "dye:white 3",
recipe = {
{"default:bone"},
}
})
minetest.register_craft({
output = "dye:blue 9",
recipe = {
{"default:lapisblock"},
}
})
minetest.register_craft({
output = "default:lapisblock",
recipe = {
{"dye:blue", "dye:blue", "dye:blue"},
{"dye:blue", "dye:blue", "dye:blue"},
{"dye:blue", "dye:blue", "dye:blue"},
}
})

View File

@ -59,6 +59,11 @@ minetest.register_craftitem("farming:string",{
groups = {materials = 1} groups = {materials = 1}
}) })
minetest.register_craft({
output = "farming:string",
recipe = {{"default:paper", "default:paper"}},
})
-- Cotton -- Cotton
--[[farming.register_plant("farming:cotton", { --[[farming.register_plant("farming:cotton", {

View File

@ -275,3 +275,12 @@ minetest.register_node("signs:wall_sign", {
groups = {oddly_breakable_by_hand = 1, choppy = 3, groups = {oddly_breakable_by_hand = 1, choppy = 3,
not_in_creative_inventory = 1, attached_node = 1}, not_in_creative_inventory = 1, attached_node = 1},
}) })
minetest.register_craft({
output = "signs:sign 3",
recipe = {
{"group:wood", "group:wood", "group:wood"},
{"group:wood", "group:wood", "group:wood"},
{"", "default:stick", ""},
}
})

View File

@ -399,3 +399,9 @@ minetest.register_craft({
{"", "group:stick", ""} {"", "group:stick", ""}
} }
}) })
minetest.register_craft({
type = "fuel",
recipe = "workbench:workbench",
burntime = 30,
})