1
0
Fork 0

Add _doc_items_create_entry fields for doc_items

objects
Wuzzy 2017-03-02 19:53:53 +01:00
parent 194ec03b68
commit aabb1e972d
28 changed files with 66 additions and 4 deletions

View File

@ -372,6 +372,7 @@ down_def.tiles = {
"default_furnace_side.png", "default_furnace_side.png"
}
down_def.groups = {pickaxey=1, container=2,not_in_creative_inventory=1}
down_def._doc_items_create_entry = false
down_def.drop = "mcl_dispensers:dispenser"
minetest.register_node("mcl_dispensers:dispenser_down", down_def)

View File

@ -128,6 +128,7 @@ down_def.tiles = {
"default_furnace_side.png", "default_furnace_side.png"
}
down_def.groups = {pickaxey=1, container=2,not_in_creative_inventory=1}
down_def._doc_items_create_entry = false
down_def.drop = "mcl_droppers:dropper"
minetest.register_node("mcl_droppers:dropper_down", down_def)

View File

@ -97,6 +97,7 @@ for zmy=0, 1 do
minetest.register_node("mesecons:wire_"..nodeid.."_off", {
description = "Redstone",
_doc_items_create_entry = nodeid == "00000000",
drawtype = "nodebox",
tiles = tiles_off,
is_ground_content = false,
@ -128,6 +129,7 @@ for zmy=0, 1 do
minetest.register_node("mesecons:wire_"..nodeid.."_on", {
description = "Redstone",
_doc_items_create_entry = false,
drawtype = "nodebox",
tiles = tiles_on,
is_ground_content = false,

View File

@ -76,6 +76,7 @@ minetest.register_node("mesecons_button:button_stone_on", {
groups = {handy=1,pickaxey=1, not_in_creative_inventory=1, attached_node=1, dig_by_water=1},
drop = 'mesecons_button:button_stone_off',
description = "Stone Button",
_doc_items_create_entry = false,
sounds = mcl_sounds.node_sound_stone_defaults(),
mesecons = {receptor = {
state = mesecon.state.on,
@ -141,6 +142,7 @@ minetest.register_node("mesecons_button:button_wood_on", {
groups = {handy=1,axey=1, not_in_creative_inventory=1, attached_node=1, dig_by_water=1},
drop = 'mesecons_button:button_wood_off',
description = "Wooden Button",
_doc_items_create_entry = false,
sounds = mcl_sounds.node_sound_wood_defaults(),
mesecons = {receptor = {
state = mesecon.state.on,

View File

@ -87,6 +87,7 @@ end
minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
description = "Redstone Repeater",
_doc_items_create_entry = i == 1,
drawtype = "nodebox",
tiles = {
"mesecons_delayer_off.png",
@ -143,6 +144,7 @@ minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), {
description = "You hacker you",
_doc_items_create_entry = false,
drawtype = "nodebox",
tiles = {
"mesecons_delayer_on.png",

View File

@ -19,6 +19,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", {
},
drop = "mesecons_solarpanel:solar_panel_off",
description="Daylight Sensor",
_doc_items_create_entry = false,
groups = {dig_immediate=3, not_in_creative_inventory = 1},
sounds = mcl_sounds.node_sound_glass_defaults(),
mesecons = {receptor = {
@ -122,6 +123,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", {
drop = "mesecons_solarpanel:solar_panel_off",
groups = {dig_immediate=3, not_in_creative_inventory = 1},
description="Inverted Daylight Sensor",
_doc_items_create_entry = false,
sounds = mcl_sounds.node_sound_glass_defaults(),
mesecons = {receptor = {
state = mesecon.state.on

View File

@ -53,6 +53,7 @@ mcl_torches.register_torch("mesecon_torch_off", "Redstone Torch (off)", "jeija_t
rules = torch_get_output_rules
}},
drop = "mesecons_torch:mesecon_torch_on",
_doc_items_create_entry = false,
}
)

View File

@ -31,6 +31,7 @@ end
-- inivisible node
minetest.register_node("gemalde:node_"..n.."", {
description = desc,
_doc_items_create_entry = n == 1,
drawtype = "signlike",
tiles = {"gemalde_"..n..".png","gemalde_bg.png"},
visual_scale = 3.0,

View File

@ -25,11 +25,13 @@ anvildef0.description = "Anvil"
local anvildef1 = table.copy(anvildef)
anvildef1.description = "Slightly Damaged Anvil"
anvildef1.groups.not_in_creative_inventory = 1
anvildef1._doc_items_create_entry = false
anvildef1.tiles = {"mcl_anvils_anvil_top_damaged_1.png^[transformR90", "mcl_anvils_anvil_base.png"}
local anvildef2 = table.copy(anvildef)
anvildef2.description = "Very Damaged Anvil"
anvildef2.groups.not_in_creative_inventory = 1
anvildef2._doc_items_create_entry = false
anvildef2.tiles = {"mcl_anvils_anvil_top_damaged_2.png^[transformR90", "mcl_anvils_anvil_base.png"}
minetest.register_node("mcl_anvils:anvil", anvildef0)

View File

@ -75,6 +75,7 @@ local register_slice = function(level, nodebox, desc)
minetest.register_node(this, {
description = desc,
_doc_items_create_entry = false,
tiles = cake_texture,
paramtype = "light",
is_ground_content = false,

View File

@ -65,6 +65,7 @@ minetest.register_node("mcl_cauldrons:cauldron", {
local register_filled_cauldron = function(water_level, description)
minetest.register_node("mcl_cauldrons:cauldron_"..water_level, {
description = description,
_doc_items_create_entry = false,
drawtype = "nodebox",
paramtype = "light",
sunlight_propagates = true,

View File

@ -32,8 +32,10 @@ function watch.register_item(name, image, creative)
if creative then
g = 0
end
local doc = name == "mcl_clock:clock"
minetest.register_craftitem(name, {
description = "Clock",
_doc_items_create_entry = doc,
inventory_image = image,
groups = {not_in_creative_inventory=g, tool=1, clock=1},
wield_image = "",

View File

@ -76,6 +76,7 @@ Using meshes will also clean up the texture mess.
]]
local crop_def = {
description = "Young Cocoa",
_doc_items_create_entry = false,
drawtype = "nodebox",
tiles = {
"[combine:32x32:12,2=mcl_cocoas_cocoa_stage_0.png", "[combine:32x32:12,22=mcl_cocoas_cocoa_stage_0.png",
@ -149,6 +150,8 @@ minetest.register_node("mcl_cocoas:cocoa_2", table.copy(crop_def))
-- Final stage
crop_def.description = "Mature Cocoa"
crop_def._doc_items_create_entry = true
crop_def._doc_items_entry_name = "Cocoa"
crop_def.groups.cocoa = 3
crop_def.tiles = {
-- The following 2 textures were derived from the original because the size of the top/bottom is slightly different :-(

View File

@ -57,6 +57,7 @@ for i,img in ipairs(images) do
end
minetest.register_craftitem("mcl_compass:"..(i-1), {
description = "Compass",
_doc_items_create_entry = i == stereotype_frame,
inventory_image = img,
wield_image = img,
stack_max = 64,

View File

@ -41,6 +41,7 @@ minetest.register_node("mcl_core:barrier", {
-- block here to make things easier for us.
minetest.register_node("mcl_core:void", {
description = "Void",
_doc_items_create_entry = false,
drawtype = "airlike",
paramtype = "light",
pointable = false,
@ -147,6 +148,7 @@ end
-- Light the redstone ore up when it has been touched
minetest.register_node("mcl_core:stone_with_redstone_lit", {
description = "Lit Redstone Ore",
_doc_items_create_entry = false,
tiles = {"default_stone.png^default_mineral_redstone.png"},
paramtype = "light",
light_source = 9,
@ -1628,6 +1630,7 @@ for i=0,3 do
end
minetest.register_node("mcl_core:frosted_ice_"..i, {
description = "Frosted Ice",
_doc_items_create_entry = i == 0,
drawtype = "glasslike",
tiles = {"default_frosted_ice_"..i..".png"},
is_ground_content = false,

View File

@ -10,6 +10,7 @@ minetest.register_craftitem("mcl_farming:beetroot_seeds", {
minetest.register_node("mcl_farming:beetroot_0", {
description = "Premature Beetroot Plant (First Stage)",
_doc_items_entry_name = "Premature Beetroot Plant",
paramtype = "light",
walkable = false,
drawtype = "plantlike",
@ -28,6 +29,7 @@ minetest.register_node("mcl_farming:beetroot_0", {
minetest.register_node("mcl_farming:beetroot_1", {
description = "Premature Beetroot Plant (Second Stage)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
drawtype = "plantlike",
@ -46,6 +48,7 @@ minetest.register_node("mcl_farming:beetroot_1", {
minetest.register_node("mcl_farming:beetroot_2", {
description = "Premature Beetroot Plant (Third Stage)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
drawtype = "plantlike",

View File

@ -1,5 +1,6 @@
minetest.register_node("mcl_farming:carrot_1", {
description = "Carrot Plant (First Stage)",
description = "Premature Carrot Plant (First Stage)",
_doc_items_entry_name = "Carrot Plant",
paramtype = "light",
walkable = false,
drawtype = "plantlike",
@ -17,7 +18,8 @@ minetest.register_node("mcl_farming:carrot_1", {
})
minetest.register_node("mcl_farming:carrot_2", {
description = "Carrot Plant (Second Stage)",
description = "Premature Carrot Plant (Second Stage)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
drawtype = "plantlike",
@ -35,7 +37,8 @@ minetest.register_node("mcl_farming:carrot_2", {
})
minetest.register_node("mcl_farming:carrot_3", {
description = "Carrot Plant (Third Stage)",
description = "Premature Carrot Plant (Third Stage)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
drawtype = "plantlike",
@ -53,7 +56,7 @@ minetest.register_node("mcl_farming:carrot_3", {
})
minetest.register_node("mcl_farming:carrot", {
description = "Carrot Plant",
description = "Mature Carrot Plant",
paramtype = "light",
walkable = false,
drawtype = "plantlike",

View File

@ -62,6 +62,7 @@ local stemdrop = {
minetest.register_node("mcl_farming:melontige_1", {
description = "Melon Stem (1)",
_doc_items_entry_name = "Melon Stem",
paramtype = "light",
walkable = false,
drawtype = "plantlike",
@ -81,6 +82,7 @@ minetest.register_node("mcl_farming:melontige_1", {
minetest.register_node("mcl_farming:melontige_2", {
description = "Melon Stem (2)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
drawtype = "plantlike",
@ -100,6 +102,7 @@ minetest.register_node("mcl_farming:melontige_2", {
minetest.register_node("mcl_farming:melontige_unconnect", {
description = "Melon Stem (unconnected)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
sunlight_propagates = true,
@ -113,6 +116,7 @@ minetest.register_node("mcl_farming:melontige_unconnect", {
minetest.register_node("mcl_farming:melontige_linked_r", {
description = "Melon Stem (linked to the right)",
_doc_items_create_entry = false,
paramtype = "light",
sunlight_propagates = true,
walkable = false,
@ -145,6 +149,7 @@ minetest.register_node("mcl_farming:melontige_linked_r", {
minetest.register_node("mcl_farming:melontige_linked_l", {
description = "Melon Stem (linked to the left)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
sunlight_propagates = true,
@ -177,6 +182,7 @@ minetest.register_node("mcl_farming:melontige_linked_l", {
minetest.register_node("mcl_farming:melontige_linked_t", {
description = "Melon Stem (linked to the top)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
sunlight_propagates = true,
@ -209,6 +215,7 @@ minetest.register_node("mcl_farming:melontige_linked_t", {
minetest.register_node("mcl_farming:melontige_linked_b", {
description = "Melon Stem (linked to the bottom)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
sunlight_propagates = true,

View File

@ -1,5 +1,6 @@
minetest.register_node("mcl_farming:potato_1", {
description = "Premature Potato Plant (First Stage)",
_doc_items_entry_name = "Premature Potato Plant",
paramtype = "light",
walkable = false,
drawtype = "plantlike",
@ -18,6 +19,7 @@ minetest.register_node("mcl_farming:potato_1", {
minetest.register_node("mcl_farming:potato_2", {
description = "Premature Potato Plant (Second Stage)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
drawtype = "plantlike",

View File

@ -31,6 +31,7 @@ local stemdrop = {
minetest.register_node("mcl_farming:pumpkin_1", {
description = "Pumpkin Stem (First Stage)",
_doc_items_entry_name = "Pumpkin Stem",
paramtype = "light",
walkable = false,
drawtype = "plantlike",
@ -50,6 +51,7 @@ minetest.register_node("mcl_farming:pumpkin_1", {
minetest.register_node("mcl_farming:pumpkin_2", {
description = "Pumpkin Stem (Second Stage)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
drawtype = "plantlike",
@ -102,6 +104,7 @@ minetest.register_node("mcl_farming:pumpkin_face", {
minetest.register_node("mcl_farming:pumpkintige_unconnect", {
description = "Pumpkin Stem (Not Connected)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
sunlight_propagates = true,
@ -116,6 +119,7 @@ minetest.register_node("mcl_farming:pumpkintige_unconnect", {
minetest.register_node("mcl_farming:pumpkintige_linked_r", {
description = "Pumpkin Stem (Linked to the Right)",
_doc_items_create_entry = false,
paramtype = "light",
sunlight_propagates = true,
walkable = false,
@ -148,6 +152,7 @@ minetest.register_node("mcl_farming:pumpkintige_linked_r", {
minetest.register_node("mcl_farming:pumpkintige_linked_l", {
description = "Pumpkin Stem (Linked to the Left)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
sunlight_propagates = true,
@ -180,6 +185,7 @@ minetest.register_node("mcl_farming:pumpkintige_linked_l", {
minetest.register_node("mcl_farming:pumpkintige_linked_t", {
description = "Pumpkin Stem (Linked to the Top)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
sunlight_propagates = true,
@ -212,6 +218,7 @@ minetest.register_node("mcl_farming:pumpkintige_linked_t", {
minetest.register_node("mcl_farming:pumpkintige_linked_b", {
description = "Pumpkin Stem (Linked to the Bottom)",
_doc_items_create_entry = false,
paramtype = "light",
walkable = false,
sunlight_propagates = true,

View File

@ -9,6 +9,7 @@ minetest.register_craftitem("mcl_farming:wheat_seeds", {
minetest.register_node("mcl_farming:wheat_1", {
description = "Premature Wheat Plant (First Stage)",
_doc_items_entry_name = "Premature Wheat Plant",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
@ -38,6 +39,7 @@ minetest.register_node("mcl_farming:wheat_1", {
minetest.register_node("mcl_farming:wheat_2", {
description = "Premature Wheat Plant (Second Stage)",
_doc_items_create_entry = false,
sunlight_propagates = true,
paramtype = "light",
walkable = false,
@ -67,6 +69,7 @@ minetest.register_node("mcl_farming:wheat_2", {
minetest.register_node("mcl_farming:wheat_3", {
description = "Premature Wheat Plant (Third Stage)",
_doc_items_create_entry = false,
sunlight_propagates = true,
paramtype = "light",
walkable = false,

View File

@ -89,6 +89,7 @@ local desc = row[3]
local texture = minetest.registered_nodes[flower_node]["tiles"]
minetest.register_node("mcl_flowerpots:flower_pot_"..flower, {
description = desc,
_doc_items_create_entry = false,
drawtype = "mesh",
mesh = "flowerpot.obj",
tiles = {
@ -125,6 +126,7 @@ local flower_node = row[2]
local desc = row[3]
minetest.register_node("mcl_flowerpots:flower_pot_"..flower, {
description = desc,
_doc_items_create_entry = false,
drawtype = "mesh",
mesh = "flowerpot_with_long_cube.obj",
tiles = {

View File

@ -271,6 +271,7 @@ minetest.register_node("mcl_furnaces:furnace", {
minetest.register_node("mcl_furnaces:furnace_active", {
description = "Burning Furnace",
_doc_items_create_entry = false,
tiles = {
"default_furnace_top.png", "default_furnace_bottom.png",
"default_furnace_side.png", "default_furnace_side.png",

View File

@ -126,6 +126,7 @@ minetest.register_node("mcl_hoppers:hopper", {
minetest.register_node("mcl_hoppers:hopper_side", {
description = "Hopper (Side)",
_doc_items_create_entry = false,
drop = "mcl_hoppers:hopper",
groups = {pickaxey=1, container=2,not_in_creative_inventory=1},
drawtype = "nodebox",

View File

@ -18,6 +18,8 @@ for r=1, records do
description =
core.colorize("#55FFFF", "Music Disc") .. "\n" ..
core.colorize("#989898", recorddata[r][2] .. "" .. recorddata[r][1]),
_doc_items_create_entry = r == 1,
_doc_items_entry_name = "Music Disc",
inventory_image = "mcl_jukebox_record_"..recorddata[r][3]..".png",
stack_max = 1,
groups = { music_record = r },

View File

@ -102,6 +102,7 @@ minetest.register_tool("mcl_throwing:bow", {
minetest.register_tool("mcl_throwing:bow_0", {
description = "Bow",
_doc_items_create_entry = false,
inventory_image = "mcl_throwing_bow_0.png",
stack_max = 1,
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},
@ -122,6 +123,7 @@ minetest.register_tool("mcl_throwing:bow_0", {
minetest.register_tool("mcl_throwing:bow_1", {
description = "Bow",
_doc_items_create_entry = false,
inventory_image = "mcl_throwing_bow_1.png",
stack_max = 1,
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},
@ -142,6 +144,7 @@ minetest.register_tool("mcl_throwing:bow_1", {
minetest.register_tool("mcl_throwing:bow_2", {
description = "Bow",
_doc_items_create_entry = false,
inventory_image = "mcl_throwing_bow_2.png",
stack_max = 1,
groups = {not_in_creative_inventory=1, not_in_craft_guide=1},

View File

@ -597,6 +597,7 @@ function mcstair.add(name, stairtiles)
})
minetest.register_node(":"..name.."_outer", {
description = node_def.description,
_doc_items_create_entry = false,
drawtype = "nodebox",
tiles = outer_tiles,
paramtype = "light",
@ -619,6 +620,7 @@ function mcstair.add(name, stairtiles)
})
minetest.register_node(":"..name.."_inner", {
description = node_def.description,
_doc_items_create_entry = false,
drawtype = "nodebox",
tiles = inner_tiles,
paramtype = "light",

View File

@ -132,6 +132,7 @@ function xpanes.register_pane(name, def)
is_ground_content = false,
sunlight_propagates = true,
description = def.description,
_doc_items_create_entry = false,
tiles = {def.textures[3], def.textures[3], def.textures[1]},
use_texture_alpha = def.use_texture_alpha,
groups = groups,