small corrections

master
A. Demant 2018-10-18 07:15:26 +02:00
parent a91139a55e
commit 2b5e2d5f16
3 changed files with 13 additions and 11 deletions

View File

@ -25,6 +25,6 @@ tea,,,20,5,2,1,,,,,1,,,1,,,,,4,,,3,30,70,30,70,50,,,,,,,,,,,,
tobaco,1,,10,8,2,,,,1,1,1,,2,,,,,,4,,,3,,,,,,,,,,,,,,,,, tobaco,1,,10,8,2,,,,1,1,1,,2,,,,,,4,,,3,,,,,,,,,,,,,,,,,
tomato,,,10,8,2,1,,,1,1,1,1,,,,,1,,,,,3,,,,,,,,,,,,,,,,, tomato,,,10,8,2,1,,,1,1,1,1,,,,,1,,,,,3,,,,,,,,,,,,,,,,,
nettle,1,,10,5,2,1,,,1,,,,1,,,1,,,2,,,3,5,150,,100,,2000,6,,,,,8,farming:nettle_fibre,,,, nettle,1,,10,5,2,1,,,1,,,,1,,,1,,,2,,,3,5,150,,100,,2000,6,,,,,8,farming:nettle_fibre,,,,
wheat,1,culturewheat,10,8,2,,,,1,1,,1,,,,1,,1,3,,1,3,,,,,,,,,,,,,farming:straw,10,,farming:flour, wheat,1,farming:culturewheat,10,8,2,,,,1,1,,1,,,,1,,1,3,,1,3,,,,,,,,,,,,,farming:straw,10,,farming:flour,
wildhop,1,hop,10,6,2,,,,,,,,,,1,,,,4,,,3,,,,,,,,,,,,,,5,,, wildhop,1,hop,10,6,2,,,,,,,,,,1,,,,4,,,3,,,,,,,,,,,,,,5,,,
wildgrapes,1,grapes,10,4,2,1,,,,,,,,,1,,,,,,,3,,,,,,,,,,,,,,5,,, wildgrapes,1,,10,4,2,1,,,,,,,,,1,,,,,,,3,,,,,,,,,,,,,,5,,,

View File

@ -91,7 +91,7 @@ minetest.register_node("farming:straw", {
minetest.register_node("farming:hemp_fibre", { minetest.register_node("farming:hemp_fibre", {
description = S("Hemp Fibre"), description = S("Hemp Fibre"),
tiles = {"farming_hemp_fibre.png"}, tiles = {"farming_hemp_fibre.png"},
inventory_image = {"farming_hemp_fibre.png"}, inventory_image = "farming_hemp_fibre.png",
is_ground_content = false, is_ground_content = false,
groups = {snappy=3, flammable=4, fall_damage_add_percent=-30}, groups = {snappy=3, flammable=4, fall_damage_add_percent=-30},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
@ -99,7 +99,7 @@ minetest.register_node("farming:hemp_fibre", {
minetest.register_node("farming:nettle_fibre", { minetest.register_node("farming:nettle_fibre", {
description = ("Nettle Fibre"), description = ("Nettle Fibre"),
tiles = {"farming_nettle_fibre.png"}, tiles = {"farming_nettle_fibre.png"},
inventory_image = {"farming_nettle_fibre.png"}, inventory_image = "farming_nettle_fibre.png",
is_ground_content = false, is_ground_content = false,
groups = {snappy=3, flammable=4, fall_damage_add_percent=-30}, groups = {snappy=3, flammable=4, fall_damage_add_percent=-30},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),

View File

@ -85,11 +85,11 @@ farming.register_plant = function(def)
end end
if def.groups["use_flail"] then if def.groups["use_flail"] then
local straw_name="farming:straw" def.straw_name="farming:straw"
if def.straw then if def.straw then
straw_name=def.straw def.straw_name=def.straw
end end
farming.seed_craft(def.step_name,straw_name) farming.seed_craft(def)
end end
if def.groups["use_trellis"] then if def.groups["use_trellis"] then
farming.trellis_seed(def.step_name,def.drop_seed_name or def.seed_name) farming.trellis_seed(def.step_name,def.drop_seed_name or def.seed_name)
@ -899,8 +899,8 @@ function farming.register_roast(rdef)
return return
end end
local roastitem = rdef.step_name.."_roasted" local roastitem = rdef.step_name.."_roasted"
if rdef.roast_name then if rdef.roast then
roastitem = rdef.roast_name roastitem = rdef.roast
end end
local mname = minetest.get_current_modname() local mname = minetest.get_current_modname()
if rdef.mod_name then if rdef.mod_name then
@ -924,6 +924,8 @@ function farming.register_roast(rdef)
if rdef.eat_hp then if rdef.eat_hp then
roast_def.on_use=minetest.item_eat(rdef.eat_hp*2) roast_def.on_use=minetest.item_eat(rdef.eat_hp*2)
end end
print(roastitem)
print(dump(roast_def))
minetest.register_craftitem(":" .. roastitem, roast_def) minetest.register_craftitem(":" .. roastitem, roast_def)
@ -947,8 +949,8 @@ function farming.register_grind(rdef)
return return
end end
local grinditem = rdef.step_name.."_flour" local grinditem = rdef.step_name.."_flour"
if rdef.grind_name then if rdef.grind then
grinditem = rdef.grind_name grinditem = rdef.grind
end end
local mname = minetest.get_current_modname() local mname = minetest.get_current_modname()
if rdef.mod_name then if rdef.mod_name then