mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 22:33:16 -04:00
Add wield light for torch and lava
This commit is contained in:
parent
c4bb058421
commit
29ea587d39
2 changed files with 5 additions and 0 deletions
|
@ -33,9 +33,11 @@ function bucket.register_liquid(source, flowing, itemname, inventory_image, name
|
||||||
bucket.liquids[flowing] = bucket.liquids[source]
|
bucket.liquids[flowing] = bucket.liquids[source]
|
||||||
|
|
||||||
if itemname ~= nil then
|
if itemname ~= nil then
|
||||||
|
nodedef = minetest.registered_nodes[source] or {}
|
||||||
minetest.register_craftitem(itemname, {
|
minetest.register_craftitem(itemname, {
|
||||||
description = name,
|
description = name,
|
||||||
inventory_image = inventory_image,
|
inventory_image = inventory_image,
|
||||||
|
wield_light = nodedef.wield_light,
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
liquids_pointable = true,
|
liquids_pointable = true,
|
||||||
groups = {not_in_creative_inventory=1},
|
groups = {not_in_creative_inventory=1},
|
||||||
|
|
|
@ -473,6 +473,7 @@ minetest.register_node("default:water_source", {
|
||||||
minetest.register_node("default:lava_flowing", {
|
minetest.register_node("default:lava_flowing", {
|
||||||
description = "Flowing Lava",
|
description = "Flowing Lava",
|
||||||
inventory_image = minetest.inventorycube("default_lava.png"),
|
inventory_image = minetest.inventorycube("default_lava.png"),
|
||||||
|
wield_light = LIGHT_MAX, -- for bucket
|
||||||
drawtype = "flowingliquid",
|
drawtype = "flowingliquid",
|
||||||
tiles = {"default_lava.png"},
|
tiles = {"default_lava.png"},
|
||||||
special_tiles = {
|
special_tiles = {
|
||||||
|
@ -507,6 +508,7 @@ minetest.register_node("default:lava_flowing", {
|
||||||
minetest.register_node("default:lava_source", {
|
minetest.register_node("default:lava_source", {
|
||||||
description = "Lava Source",
|
description = "Lava Source",
|
||||||
inventory_image = minetest.inventorycube("default_lava.png"),
|
inventory_image = minetest.inventorycube("default_lava.png"),
|
||||||
|
wield_light = LIGHT_MAX,
|
||||||
drawtype = "liquid",
|
drawtype = "liquid",
|
||||||
tiles = {
|
tiles = {
|
||||||
{name="default_lava_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
|
{name="default_lava_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
|
||||||
|
@ -547,6 +549,7 @@ minetest.register_node("default:torch", {
|
||||||
},
|
},
|
||||||
inventory_image = "default_torch_on_floor.png",
|
inventory_image = "default_torch_on_floor.png",
|
||||||
wield_image = "default_torch_on_floor.png",
|
wield_image = "default_torch_on_floor.png",
|
||||||
|
wield_light = LIGHT_MAX-1,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue