diff --git a/mods/MAPGEN/tsm_railcorridors/gameconfig.lua b/mods/MAPGEN/tsm_railcorridors/gameconfig.lua index df86f58782..b0c255bacf 100644 --- a/mods/MAPGEN/tsm_railcorridors/gameconfig.lua +++ b/mods/MAPGEN/tsm_railcorridors/gameconfig.lua @@ -98,6 +98,15 @@ function tsm_railcorridors.get_treasures(pr) { itemstring = "mcl_minecarts:detector_rail", weight = 5, amount_min = 1, amount_max = 4 }, { itemstring = "mcl_minecarts:golden_rail", weight = 5, amount_min = 1, amount_max = 4 }, } + }, + -- non-MC loot: 50% chance to add a minecart, offered as alternative to spawning minecarts on rails. + -- TODO: Remove this when minecarts spawn on rails. + { + stacks_min = 0, + stacks_max = 1, + items = { + { itemstring = "mcl_minecarts:minecart", weight = 1 }, + } } } diff --git a/mods/MAPGEN/tsm_railcorridors/init.lua b/mods/MAPGEN/tsm_railcorridors/init.lua index 358b652181..57c183794e 100644 --- a/mods/MAPGEN/tsm_railcorridors/init.lua +++ b/mods/MAPGEN/tsm_railcorridors/init.lua @@ -68,7 +68,8 @@ end -- Probability for every part of a corridor to contain a cart -- Disabled because cart spawning creates error message spam: -- “m_static_exists=true but static data doesn't actually exist in (x,y,z) --- TODO: Set back to 0.05 if this is fixedd. +-- TODO: Set back to 0.05 when this is fixed. +-- TODO: Remove minecarts from loot table when minecarts spawn on rails. local probability_cart = P(0) --[[ setting = tonumber(minetest.settings:get("tsm_railcorridors_probability_cart"))