0
0
Fork 0

Spawn minecarts in railcorridor chests

This commit is contained in:
Wuzzy 2019-02-06 03:00:45 +01:00
parent 9105f248b4
commit da625b569a
2 changed files with 11 additions and 1 deletions

View File

@ -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 },
}
}
}

View File

@ -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"))