Added wield images
This commit is contained in:
parent
a3e577a3ec
commit
4a29cc936a
@ -22,6 +22,7 @@ minetest.register_node("ethereal:crystal_spike", {
|
|||||||
minetest.register_craftitem("ethereal:crystal_ingot", {
|
minetest.register_craftitem("ethereal:crystal_ingot", {
|
||||||
description = "Crystal Ingot",
|
description = "Crystal Ingot",
|
||||||
inventory_image = "crystal_ingot.png",
|
inventory_image = "crystal_ingot.png",
|
||||||
|
wield_image = "crystal_ingot.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -63,6 +64,7 @@ minetest.register_craft({
|
|||||||
minetest.register_tool("ethereal:sword_crystal", {
|
minetest.register_tool("ethereal:sword_crystal", {
|
||||||
description = "Crystal Sword",
|
description = "Crystal Sword",
|
||||||
inventory_image = "crystal_sword.png",
|
inventory_image = "crystal_sword.png",
|
||||||
|
wield_image = "crystal_sword.png",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 0.6,
|
full_punch_interval = 0.6,
|
||||||
max_drop_level = 1,
|
max_drop_level = 1,
|
||||||
@ -90,6 +92,7 @@ minetest.register_craft({
|
|||||||
minetest.register_tool("ethereal:axe_crystal", {
|
minetest.register_tool("ethereal:axe_crystal", {
|
||||||
description = "Crystal Axe",
|
description = "Crystal Axe",
|
||||||
inventory_image = "crystal_axe.png",
|
inventory_image = "crystal_axe.png",
|
||||||
|
wield_image = "crystal_axe.png",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 0.8,
|
full_punch_interval = 0.8,
|
||||||
max_drop_level = 1,
|
max_drop_level = 1,
|
||||||
@ -117,6 +120,7 @@ minetest.register_craft({
|
|||||||
minetest.register_tool("ethereal:pick_crystal", {
|
minetest.register_tool("ethereal:pick_crystal", {
|
||||||
description = "Crystal Pickaxe",
|
description = "Crystal Pickaxe",
|
||||||
inventory_image = "crystal_pick.png",
|
inventory_image = "crystal_pick.png",
|
||||||
|
wield_image = "crystal_pick.png",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
full_punch_interval = 0.7,
|
full_punch_interval = 0.7,
|
||||||
max_drop_level = 3,
|
max_drop_level = 3,
|
||||||
|
10
extra.lua
10
extra.lua
@ -61,12 +61,15 @@ minetest.register_craft({
|
|||||||
minetest.register_node("ethereal:paper_wall", {
|
minetest.register_node("ethereal:paper_wall", {
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
description = ("Paper Wall"),
|
description = ("Paper Wall"),
|
||||||
tiles = {"paper_wall.png",},
|
tiles = {"paper_wall.png"},
|
||||||
|
inventory_image_image = "paper_wall.png",
|
||||||
|
wield_image = "paper_wall.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {snappy = 3},
|
groups = {snappy = 3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
walkable = true,
|
walkable = true,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
sunlight_propagates = true,
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -132,6 +135,7 @@ minetest.register_craft({
|
|||||||
minetest.register_craftitem("ethereal:charcoal_lump", {
|
minetest.register_craftitem("ethereal:charcoal_lump", {
|
||||||
description = "Lump of Charcoal",
|
description = "Lump of Charcoal",
|
||||||
inventory_image = "charcoal_lump.png",
|
inventory_image = "charcoal_lump.png",
|
||||||
|
wield_image = "charcoal_lump.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -217,6 +221,7 @@ minetest.register_node("ethereal:illumishroom", {
|
|||||||
wield_image = "illumishroom.png",
|
wield_image = "illumishroom.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {dig_immediate = 3, attached_node = 1,flammable = 3},
|
groups = {dig_immediate = 3, attached_node = 1,flammable = 3},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
@ -234,6 +239,7 @@ minetest.register_node("ethereal:illumishroom2", {
|
|||||||
wield_image = "illumishroom2.png",
|
wield_image = "illumishroom2.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {dig_immediate = 3, attached_node = 1,flammable = 3},
|
groups = {dig_immediate = 3, attached_node = 1,flammable = 3},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
@ -251,6 +257,7 @@ minetest.register_node("ethereal:illumishroom3", {
|
|||||||
wield_image = "illumishroom3.png",
|
wield_image = "illumishroom3.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {dig_immediate = 3, attached_node = 1,flammable = 3},
|
groups = {dig_immediate = 3, attached_node = 1,flammable = 3},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
@ -264,6 +271,7 @@ minetest.register_node("ethereal:illumishroom3", {
|
|||||||
minetest.register_tool("ethereal:light_staff", {
|
minetest.register_tool("ethereal:light_staff", {
|
||||||
description = "Staff of Light",
|
description = "Staff of Light",
|
||||||
inventory_image = "light_staff.png",
|
inventory_image = "light_staff.png",
|
||||||
|
wield_image = "light_staff.png",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
on_use = function(itemstack, user, pointed_thing)
|
on_use = function(itemstack, user, pointed_thing)
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
minetest.register_craftitem("ethereal:fish_raw", {
|
minetest.register_craftitem("ethereal:fish_raw", {
|
||||||
description = "Raw Fish",
|
description = "Raw Fish",
|
||||||
inventory_image = "fish_raw.png",
|
inventory_image = "fish_raw.png",
|
||||||
|
wield_image = "fish_raw.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -9,6 +10,7 @@ minetest.register_craftitem("ethereal:fish_raw", {
|
|||||||
minetest.register_craftitem("ethereal:fish_cooked", {
|
minetest.register_craftitem("ethereal:fish_cooked", {
|
||||||
description = "Cooked Fish",
|
description = "Cooked Fish",
|
||||||
inventory_image = "fish_cooked.png",
|
inventory_image = "fish_cooked.png",
|
||||||
|
wield_image = "fish_cooked.png",
|
||||||
on_use = minetest.item_eat(5),
|
on_use = minetest.item_eat(5),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -23,6 +25,7 @@ minetest.register_craft({
|
|||||||
minetest.register_craftitem("ethereal:sashimi", {
|
minetest.register_craftitem("ethereal:sashimi", {
|
||||||
description = "Sashimi",
|
description = "Sashimi",
|
||||||
inventory_image = "sashimi.png",
|
inventory_image = "sashimi.png",
|
||||||
|
wield_image = "sashimi.png",
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(4),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -37,12 +40,14 @@ minetest.register_craft({
|
|||||||
minetest.register_craftitem("ethereal:worm", {
|
minetest.register_craftitem("ethereal:worm", {
|
||||||
description = "Worm",
|
description = "Worm",
|
||||||
inventory_image = "worm.png",
|
inventory_image = "worm.png",
|
||||||
|
wield_image = "worm.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Fishing Rod
|
-- Fishing Rod
|
||||||
minetest.register_craftitem("ethereal:fishing_rod", {
|
minetest.register_craftitem("ethereal:fishing_rod", {
|
||||||
description = "Fishing Rod",
|
description = "Fishing Rod",
|
||||||
inventory_image = "fishing_rod.png",
|
inventory_image = "fishing_rod.png",
|
||||||
|
wield_image = "fishing_rod.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -94,4 +99,4 @@ minetest.register_craft({
|
|||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "ethereal:fishing_rod_baited",
|
output = "ethereal:fishing_rod_baited",
|
||||||
recipe = {"ethereal:fishing_rod", "ethereal:worm"},
|
recipe = {"ethereal:fishing_rod", "ethereal:worm"},
|
||||||
})
|
})
|
||||||
|
16
leaves.lua
16
leaves.lua
@ -14,6 +14,7 @@ minetest.register_node("ethereal:acacia_leaves", {
|
|||||||
drawtype = leaftype,
|
drawtype = leaftype,
|
||||||
tiles = {"moretrees_acacia_leaves.png"},
|
tiles = {"moretrees_acacia_leaves.png"},
|
||||||
inventory_image = "moretrees_acacia_leaves.png",
|
inventory_image = "moretrees_acacia_leaves.png",
|
||||||
|
wield_image = "moretrees_acacia_leaves.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
@ -34,6 +35,7 @@ minetest.override_item("default:acacia_leaves", {
|
|||||||
drawtype = leaftype,
|
drawtype = leaftype,
|
||||||
tiles = {"moretrees_acacia_leaves.png"},
|
tiles = {"moretrees_acacia_leaves.png"},
|
||||||
inventory_image = "moretrees_acacia_leaves.png",
|
inventory_image = "moretrees_acacia_leaves.png",
|
||||||
|
wield_image = "moretrees_acacia_leaves.png",
|
||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
drop = {
|
drop = {
|
||||||
@ -53,6 +55,7 @@ minetest.register_node("ethereal:willow_twig", {
|
|||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"willow_twig.png"},
|
tiles = {"willow_twig.png"},
|
||||||
inventory_image = "willow_twig.png",
|
inventory_image = "willow_twig.png",
|
||||||
|
wield_image = "willow_twig.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
@ -76,6 +79,7 @@ minetest.register_node("ethereal:redwood_leaves", {
|
|||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
tiles = {"redwood_leaves.png"},
|
tiles = {"redwood_leaves.png"},
|
||||||
inventory_image = "redwood_leaves.png",
|
inventory_image = "redwood_leaves.png",
|
||||||
|
wield_image = "redwood_leaves.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -96,6 +100,7 @@ minetest.override_item("default:leaves", {
|
|||||||
drawtype = leaftype,
|
drawtype = leaftype,
|
||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
inventory_image = "default_leaves.png",
|
inventory_image = "default_leaves.png",
|
||||||
|
wield_image = "default_leaves.png",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
drop = {
|
drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
@ -113,6 +118,7 @@ minetest.register_node("ethereal:orange_leaves", {
|
|||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
tiles = {"orange_leaves.png"},
|
tiles = {"orange_leaves.png"},
|
||||||
inventory_image = "orange_leaves.png",
|
inventory_image = "orange_leaves.png",
|
||||||
|
wield_image = "orange_leaves.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -133,6 +139,7 @@ minetest.override_item("default:jungleleaves", {
|
|||||||
drawtype = leaftype,
|
drawtype = leaftype,
|
||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
inventory_image = "default_jungleleaves.png",
|
inventory_image = "default_jungleleaves.png",
|
||||||
|
wield_image = "default_jungleleaves.png",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
drop = {
|
drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
@ -150,6 +157,7 @@ minetest.register_node("ethereal:bananaleaves", {
|
|||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
tiles = {"banana_leaf.png"},
|
tiles = {"banana_leaf.png"},
|
||||||
inventory_image = "banana_leaf.png",
|
inventory_image = "banana_leaf.png",
|
||||||
|
wield_image = "banana_leaf.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -172,6 +180,7 @@ minetest.register_node("ethereal:yellowleaves", {
|
|||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
tiles = {"yellow_leaves.png"},
|
tiles = {"yellow_leaves.png"},
|
||||||
inventory_image = "yellow_leaves.png",
|
inventory_image = "yellow_leaves.png",
|
||||||
|
wield_image = "yellow_leaves.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -197,6 +206,7 @@ minetest.register_node("ethereal:palmleaves", {
|
|||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
tiles = {"moretrees_palm_leaves.png"},
|
tiles = {"moretrees_palm_leaves.png"},
|
||||||
inventory_image = "moretrees_palm_leaves.png",
|
inventory_image = "moretrees_palm_leaves.png",
|
||||||
|
wield_image = "moretrees_palm_leaves.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -219,6 +229,7 @@ minetest.register_node("ethereal:birch_leaves", {
|
|||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
tiles = {"moretrees_birch_leaves.png"},
|
tiles = {"moretrees_birch_leaves.png"},
|
||||||
inventory_image = "moretrees_birch_leaves.png",
|
inventory_image = "moretrees_birch_leaves.png",
|
||||||
|
wield_image = "moretrees_birch_leaves.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -240,6 +251,7 @@ minetest.override_item("default:pine_needles", {
|
|||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
tiles = {"pine_leaves.png"},
|
tiles = {"pine_leaves.png"},
|
||||||
inventory_image = "pine_leaves.png",
|
inventory_image = "pine_leaves.png",
|
||||||
|
wield_image = "pine_leaves.png",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
drop = {
|
drop = {
|
||||||
max_items = 1,
|
max_items = 1,
|
||||||
@ -259,6 +271,7 @@ minetest.register_node("ethereal:frost_leaves", {
|
|||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
tiles = {"ethereal_frost_leaves.png"},
|
tiles = {"ethereal_frost_leaves.png"},
|
||||||
inventory_image = "ethereal_frost_leaves.png",
|
inventory_image = "ethereal_frost_leaves.png",
|
||||||
|
wield_image = "ethereal_frost_leaves.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -332,6 +345,7 @@ minetest.register_node("ethereal:bamboo_leaves", {
|
|||||||
visual_scale = 1.2,
|
visual_scale = 1.2,
|
||||||
tiles = {"bamboo_leaves.png"},
|
tiles = {"bamboo_leaves.png"},
|
||||||
inventory_image = "bamboo_leaves.png",
|
inventory_image = "bamboo_leaves.png",
|
||||||
|
wield_image = "bamboo_leaves.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -345,4 +359,4 @@ minetest.register_node("ethereal:bamboo_leaves", {
|
|||||||
},
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
after_place_node = default.after_place_leaves,
|
after_place_node = default.after_place_leaves,
|
||||||
})
|
})
|
||||||
|
@ -3,6 +3,7 @@ minetest.register_craftitem("ethereal:wild_onion_plant", {
|
|||||||
description = "Wild Onion",
|
description = "Wild Onion",
|
||||||
groups = {not_in_creative_inventory=1},
|
groups = {not_in_creative_inventory=1},
|
||||||
inventory_image = "wild_onion.png",
|
inventory_image = "wild_onion.png",
|
||||||
|
wield_image = "wild_onion.png",
|
||||||
on_use = minetest.item_eat(2),
|
on_use = minetest.item_eat(2),
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:wild_onion_1")
|
return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:wild_onion_1")
|
||||||
|
@ -7,6 +7,7 @@ ethereal.register_sapling = function(name, desc, texture)
|
|||||||
visual_scale = 1.0,
|
visual_scale = 1.0,
|
||||||
tiles = {texture .. "_sapling.png"},
|
tiles = {texture .. "_sapling.png"},
|
||||||
inventory_image = texture .. "_sapling.png",
|
inventory_image = texture .. "_sapling.png",
|
||||||
|
wield_image = texture .. "_sapling.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
12
sealife.lua
12
sealife.lua
@ -31,6 +31,7 @@ minetest.register_node("ethereal:coral2", {
|
|||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"coral2.png"},
|
tiles = {"coral2.png"},
|
||||||
inventory_image = "coral2.png",
|
inventory_image = "coral2.png",
|
||||||
|
wield_image = "coral2.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -53,6 +54,7 @@ minetest.register_node("ethereal:coral3", {
|
|||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"coral3.png"},
|
tiles = {"coral3.png"},
|
||||||
inventory_image = "coral3.png",
|
inventory_image = "coral3.png",
|
||||||
|
wield_image = "coral3.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -75,6 +77,7 @@ minetest.register_node("ethereal:coral4", {
|
|||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"coral4.png"},
|
tiles = {"coral4.png"},
|
||||||
inventory_image = "coral4.png",
|
inventory_image = "coral4.png",
|
||||||
|
wield_image = "coral4.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -97,6 +100,7 @@ minetest.register_node("ethereal:coral5", {
|
|||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
tiles = {"coral5.png"},
|
tiles = {"coral5.png"},
|
||||||
inventory_image = "coral5.png",
|
inventory_image = "coral5.png",
|
||||||
|
wield_image = "coral5.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
@ -147,8 +151,9 @@ minetest.register_abm({
|
|||||||
catch_up = false,
|
catch_up = false,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
|
|
||||||
local sel = math.random(1,5)
|
local sel = math.random(1, 5)
|
||||||
if sel == 1 or node.name == "ethereal:seaweed" then
|
if sel == 1
|
||||||
|
or node.name == "ethereal:seaweed" then
|
||||||
local height = 0
|
local height = 0
|
||||||
|
|
||||||
while (minetest.get_node(pos).name == "ethereal:seaweed"
|
while (minetest.get_node(pos).name == "ethereal:seaweed"
|
||||||
@ -158,7 +163,8 @@ minetest.register_abm({
|
|||||||
pos.y = pos.y + 1
|
pos.y = pos.y + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
if height < 14 and pos.y < 0
|
if height < 14
|
||||||
|
and pos.y < 0
|
||||||
and minetest.get_node(pos).name == "default:water_source" then
|
and minetest.get_node(pos).name == "default:water_source" then
|
||||||
minetest.set_node(pos, {name = "ethereal:seaweed"})
|
minetest.set_node(pos, {name = "ethereal:seaweed"})
|
||||||
end
|
end
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
minetest.register_craftitem("ethereal:strawberry", {
|
minetest.register_craftitem("ethereal:strawberry", {
|
||||||
description = "Strawberry",
|
description = "Strawberry",
|
||||||
inventory_image = "strawberry.png",
|
inventory_image = "strawberry.png",
|
||||||
|
wield_image = "strawberry.png",
|
||||||
on_use = minetest.item_eat(1),
|
on_use = minetest.item_eat(1),
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:strawberry_1")
|
return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:strawberry_1")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user