strawberry: id corrections

master
tchncs 2016-05-22 00:04:14 +02:00
parent 2b7dda38da
commit b77025dca2
1 changed files with 11 additions and 11 deletions

View File

@ -3,8 +3,8 @@
-- Strawberry (can also be planted as seed) -- Strawberry (can also be planted as seed)
minetest.register_craftitem("farming:strawberry", { minetest.register_craftitem("farming:strawberry", {
description = "Strawberry", description = "Strawberry",
inventory_image = "strawberry.png", inventory_image = "farming_strawberry.png",
wield_image = "strawberry.png", wield_image = "farming_strawberry.png",
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:strawberry_1") return farming.place_seed(itemstack, placer, pointed_thing, "farming:strawberry_1")
end, end,
@ -12,7 +12,7 @@ minetest.register_craftitem("farming:strawberry", {
}) })
-- added by illuna -- added by illuna
minetest.register_craftitem("farming:strawberry", { minetest.register_craftitem("farming:strawberry_seed", {
description = "Strawberry Seeds", description = "Strawberry Seeds",
inventory_image = "farming_strawberry_seed.png", inventory_image = "farming_strawberry_seed.png",
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
@ -23,7 +23,7 @@ minetest.register_craftitem("farming:strawberry", {
-- Define Strawberry Bush growth stages -- Define Strawberry Bush growth stages
local crop_def = { local crop_def = {
drawtype = "plantlike", drawtype = "plantlike",
tiles = {"strawberry_1.png"}, tiles = {"farming_strawberry_1.png"},
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
waving = 1, waving = 1,
@ -45,23 +45,23 @@ local crop_def = {
minetest.register_node("farming:strawberry_1", table.copy(crop_def)) minetest.register_node("farming:strawberry_1", table.copy(crop_def))
-- stage 2 -- stage 2
crop_def.tiles = {"strawberry_2.png"} crop_def.tiles = {"farming_strawberry_2.png"}
minetest.register_node("farming:strawberry_2", table.copy(crop_def)) minetest.register_node("farming:strawberry_2", table.copy(crop_def))
-- stage 3 -- stage 3
crop_def.tiles = {"strawberry_3.png"} crop_def.tiles = {"farming_strawberry_3.png"}
minetest.register_node("farming:strawberry_3", table.copy(crop_def)) minetest.register_node("farming:strawberry_3", table.copy(crop_def))
-- stage 4 -- stage 4
crop_def.tiles = {"strawberry_4.png"} crop_def.tiles = {"farming_strawberry_4.png"}
minetest.register_node("farming:strawberry_4", table.copy(crop_def)) minetest.register_node("farming:strawberry_4", table.copy(crop_def))
-- stage 5 -- stage 5
crop_def.tiles = {"strawberry_5.png"} crop_def.tiles = {"farming_strawberry_5.png"}
minetest.register_node("farming:strawberry_5", table.copy(crop_def)) minetest.register_node("farming:strawberry_5", table.copy(crop_def))
-- stage 6 -- stage 6
crop_def.tiles = {"strawberry_6.png"} crop_def.tiles = {"farming_strawberry_6.png"}
crop_def.drop = { crop_def.drop = {
items = { items = {
{items = {"farming:strawberry 1"},rarity = 2}, {items = {"farming:strawberry 1"},rarity = 2},
@ -71,7 +71,7 @@ crop_def.drop = {
minetest.register_node("farming:strawberry_6", table.copy(crop_def)) minetest.register_node("farming:strawberry_6", table.copy(crop_def))
-- stage 7 -- stage 7
crop_def.tiles = {"strawberry_7.png"} crop_def.tiles = {"farming_strawberry_7.png"}
crop_def.drop = { crop_def.drop = {
items = { items = {
{items = {"farming:strawberry 1"},rarity = 1}, {items = {"farming:strawberry 1"},rarity = 1},
@ -81,7 +81,7 @@ crop_def.drop = {
minetest.register_node("farming:strawberry_7", table.copy(crop_def)) minetest.register_node("farming:strawberry_7", table.copy(crop_def))
-- stage 8 -- stage 8
crop_def.tiles = {"strawberry_8.png"} crop_def.tiles = {"farming_strawberry_8.png"}
crop_def.groups.growing = 0 crop_def.groups.growing = 0
crop_def.drop = { crop_def.drop = {
items = { items = {