Spawn minecarts in railcorridor chests
This commit is contained in:
parent
9105f248b4
commit
da625b569a
|
@ -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:detector_rail", weight = 5, amount_min = 1, amount_max = 4 },
|
||||||
{ itemstring = "mcl_minecarts:golden_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 },
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,8 @@ end
|
||||||
-- Probability for every part of a corridor to contain a cart
|
-- Probability for every part of a corridor to contain a cart
|
||||||
-- Disabled because cart spawning creates error message spam:
|
-- Disabled because cart spawning creates error message spam:
|
||||||
-- “m_static_exists=true but static data doesn't actually exist in (x,y,z)
|
-- “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)
|
local probability_cart = P(0)
|
||||||
--[[
|
--[[
|
||||||
setting = tonumber(minetest.settings:get("tsm_railcorridors_probability_cart"))
|
setting = tonumber(minetest.settings:get("tsm_railcorridors_probability_cart"))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user