mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-09 16:49:35 +01:00
Remove temporary description string, add assert to force description field to be present in rail definitions and fix descriptions for on variants of rail
This commit is contained in:
parent
1656262156
commit
b5754d63a2
4 changed files with 4 additions and 1 deletions
|
@ -122,7 +122,6 @@ local BASE_DEF = {
|
||||||
dig_by_water=0,destroy_by_lava_flow=0,
|
dig_by_water=0,destroy_by_lava_flow=0,
|
||||||
transport=1
|
transport=1
|
||||||
},
|
},
|
||||||
description = S("New Rail"), -- Temporary name to make debugging easier
|
|
||||||
_tt_help = S("Track for minecarts"),
|
_tt_help = S("Track for minecarts"),
|
||||||
_doc_items_usagehelp = railuse,
|
_doc_items_usagehelp = railuse,
|
||||||
_doc_items_longdesc = S("Rails can be used to build transport tracks for minecarts. Normal rails slightly slow down minecarts due to friction."),
|
_doc_items_longdesc = S("Rails can be used to build transport tracks for minecarts. Normal rails slightly slow down minecarts due to friction."),
|
||||||
|
@ -186,6 +185,7 @@ table_merge(SLOPED_RAIL_DEF,{
|
||||||
|
|
||||||
function mod.register_rail(itemstring, ndef)
|
function mod.register_rail(itemstring, ndef)
|
||||||
assert(ndef.tiles)
|
assert(ndef.tiles)
|
||||||
|
assert(ndef.description)
|
||||||
|
|
||||||
-- Extract out the craft recipe
|
-- Extract out the craft recipe
|
||||||
local craft = ndef.craft
|
local craft = ndef.craft
|
||||||
|
|
|
@ -51,6 +51,7 @@ mod.register_curves_rail("mcl_minecarts:activator_rail_v2_on", {
|
||||||
"mcl_minecarts_rail_activator_t_junction_powered.png",
|
"mcl_minecarts_rail_activator_t_junction_powered.png",
|
||||||
"mcl_minecarts_rail_activator_crossing_powered.png"
|
"mcl_minecarts_rail_activator_crossing_powered.png"
|
||||||
},{
|
},{
|
||||||
|
description = S("Activator Rail"),
|
||||||
_doc_items_create_entry = false,
|
_doc_items_create_entry = false,
|
||||||
groups = {
|
groups = {
|
||||||
not_in_creative_inventory = 1,
|
not_in_creative_inventory = 1,
|
||||||
|
|
|
@ -48,6 +48,7 @@ mod.register_curves_rail("mcl_minecarts:detector_rail_v2_on",{
|
||||||
"mcl_minecarts_rail_detector_t_junction_powered.png",
|
"mcl_minecarts_rail_detector_t_junction_powered.png",
|
||||||
"mcl_minecarts_rail_detector_crossing_powered.png"
|
"mcl_minecarts_rail_detector_crossing_powered.png"
|
||||||
},{
|
},{
|
||||||
|
description = S("Detector Rail"),
|
||||||
groups = {
|
groups = {
|
||||||
not_in_creative_inventory = 1,
|
not_in_creative_inventory = 1,
|
||||||
},
|
},
|
||||||
|
|
|
@ -46,6 +46,7 @@ mod.register_curves_rail("mcl_minecarts:golden_rail_v2_on",{
|
||||||
"mcl_minecarts_rail_golden_t_junction_powered.png",
|
"mcl_minecarts_rail_golden_t_junction_powered.png",
|
||||||
"mcl_minecarts_rail_golden_crossing_powered.png",
|
"mcl_minecarts_rail_golden_crossing_powered.png",
|
||||||
},{
|
},{
|
||||||
|
description = S("Powered Rail"),
|
||||||
_doc_items_create_entry = false,
|
_doc_items_create_entry = false,
|
||||||
_rail_acceleration = function(pos, staticdata)
|
_rail_acceleration = function(pos, staticdata)
|
||||||
if staticdata.velocity ~= 0 then
|
if staticdata.velocity ~= 0 then
|
||||||
|
|
Loading…
Reference in a new issue