update
This commit is contained in:
parent
fef615b588
commit
db551faab8
5 changed files with 75 additions and 31 deletions
|
@ -137,6 +137,15 @@ git clone --branch master https://git.bananach.space/basic_trains.git
|
||||||
#Clean git stuff
|
#Clean git stuff
|
||||||
rm -rf $(find . -name .git*)
|
rm -rf $(find . -name .git*)
|
||||||
|
|
||||||
|
#Make some fixes
|
||||||
|
#1
|
||||||
|
if [[ $(grep -R "run_at_every_load = false" homedecor_modpack/homedecor_kitchen/init.lua | wc -l) = 1 ]]
|
||||||
|
then
|
||||||
|
echo "Applying fix for unknown kitchen_cabinet blocks: https://git.my-web.xyz/milan/minetest-mm/issues/34"
|
||||||
|
echo "This fix can be removed after some time"
|
||||||
|
sed -i 's/run_at_every_load = false,/run_at_every_load = true,/' homedecor_modpack/homedecor_kitchen/init.lua
|
||||||
|
fi
|
||||||
|
|
||||||
#update skins-db
|
#update skins-db
|
||||||
cd skinsdb/updater
|
cd skinsdb/updater
|
||||||
python3 update_skins.py
|
python3 update_skins.py
|
||||||
|
|
|
@ -706,6 +706,20 @@ minetest.register_chatcommand("at_reroute",
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_chatcommand("at_whereis",
|
||||||
|
{
|
||||||
|
params = "<train id>",
|
||||||
|
description = "Returns the position of the train with the given id",
|
||||||
|
privs = {train_operator = true},
|
||||||
|
func = function(name,param)
|
||||||
|
local train = advtrains.trains[param]
|
||||||
|
if not train or not train.last_pos then
|
||||||
|
return false, "Train "..param.." does not exist or is invalid"
|
||||||
|
else
|
||||||
|
return true, "Train "..param.." is at "..minetest.pos_to_string(train.last_pos)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
minetest.register_chatcommand("at_disable_step",
|
minetest.register_chatcommand("at_disable_step",
|
||||||
{
|
{
|
||||||
params = "<yes/no>",
|
params = "<yes/no>",
|
||||||
|
|
|
@ -607,34 +607,7 @@ Although this project was intended to be used with minetest_game, it can be
|
||||||
configured to work with something else instead. All you need to do is provide
|
configured to work with something else instead. All you need to do is provide
|
||||||
the names of the nodes in your game you want biome_lib's internals to use.
|
the names of the nodes in your game you want biome_lib's internals to use.
|
||||||
|
|
||||||
Put these settings in your game's minetest.conf (or your client's own config,
|
See settingtypes.txt for a list. Any item listed there can be changed either
|
||||||
if desired). You'll need to set all of them.
|
by adding it to your minetest.conf, or by using the "all settings" menu in
|
||||||
|
Minetest, whatever's appropriate for your particular setup.
|
||||||
|
|
||||||
biome_lib_default_grow_through_nodes
|
|
||||||
Comma-separated list of things that a spawned node is allowed to grow
|
|
||||||
through. Air is always added to whatever you specify.
|
|
||||||
Default: air, default:snow
|
|
||||||
|
|
||||||
biome_lib_default_water_nodes
|
|
||||||
Comma-separated list of nodes that should be treated as water for the sake
|
|
||||||
of looking for neighboring "wet" ground.
|
|
||||||
Default: default:water_source, default:water_flowing,
|
|
||||||
default:river_water_source, default:river_water_flowing
|
|
||||||
|
|
||||||
biome_lib_default_wet_surfaces
|
|
||||||
Comma-separated list of nodes that should be considered "wet" if one of
|
|
||||||
the aforementioned water nodes is nearby.
|
|
||||||
Default: default:dirt, default:dirt_with_grass, default:sand
|
|
||||||
|
|
||||||
biome_lib_default_grow_nodes
|
|
||||||
Comma-separated list of nodes that something must be sitting on to be
|
|
||||||
able to actively change from one thing to another (such as a sapling
|
|
||||||
growing into a tree), to be used for ALL growable nodes, if the calling
|
|
||||||
mod doesn't provide its own lists.
|
|
||||||
Default: "default:dirt_with_grass"
|
|
||||||
|
|
||||||
biome_lib_default_ground_nodes
|
|
||||||
Comma-separated list of nodes to use as the "root" of something that can
|
|
||||||
gradually climb up a wall, to be used for ALL such nodes, if the calling
|
|
||||||
mod doesn't provide its own lists.
|
|
||||||
Default: "default:dirt_with_grass"
|
|
||||||
|
|
48
mods/biome_lib/settingtypes.txt
Normal file
48
mods/biome_lib/settingtypes.txt
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
# Comma-separated list of things that a spawned node is allowed to grow
|
||||||
|
# through. Air is always added to whatever else you specify here.
|
||||||
|
biome_lib_default_grow_through_nodes (List of things a plant can grow through) string default:snow
|
||||||
|
|
||||||
|
# Comma-separated list of nodes that should be treated as water or water-like
|
||||||
|
# for the sake of looking for neighboring wet ground.
|
||||||
|
biome_lib_default_water_nodes (List of "water-like" sources) string default:water_source,default:water_flowing,default:river_water_source,default:river_water_flowing
|
||||||
|
|
||||||
|
# Comma-separated list of nodes that should be considered "wet" if one of
|
||||||
|
# the configured "water-like" sources is nearby.
|
||||||
|
biome_lib_default_wet_surfaces (List of "wet" nodes) string default:dirt,default:dirt_with_grass,default:sand
|
||||||
|
|
||||||
|
# Comma-separated list of nodes that something must be sitting on to be
|
||||||
|
# able to actively change from one thing to another (such as a sapling
|
||||||
|
# growing into a tree), to be used if the mod that added that growable
|
||||||
|
# thing didn't provide its own list of suitable surfaces.
|
||||||
|
biome_lib_default_grow_nodes (List of default surfaces a plant can thrive on) string default:dirt_with_grass
|
||||||
|
|
||||||
|
# Comma-separated list of nodes to use as the "root" of something that can
|
||||||
|
# gradually climb up a wall (such as ivy), to be used if the mod that added
|
||||||
|
# the climing thing didn't provide its own list.
|
||||||
|
biome_lib_default_ground_nodes (List of default root nodes) string default:dirt_with_grass
|
||||||
|
|
||||||
|
# biome_lib divides its workload into "actions", as dictated by the sum
|
||||||
|
# total of all mods that use it, and this sets how much of that work is done
|
||||||
|
# per globalstep tick. If positive, a single action is executed on that
|
||||||
|
# percentage of ticks, on average. If negative, it becomes positive, and
|
||||||
|
# that many actions are executed on every single tick, skipping none.
|
||||||
|
# More negative means more throughput, at the expense of lag. On fast PC's,
|
||||||
|
# a setting of between -500 and -2000 might be good.
|
||||||
|
biome_lib_queue_run_ratio (Queue run ratio) int -100
|
||||||
|
|
||||||
|
# Minetest's map generator allows neighboring areas to overflow into one
|
||||||
|
# another, to create smooth terrain, but it often hands the map blocks that
|
||||||
|
# comprise those areas to Lua (and hence, to biome_lib) before that overflow
|
||||||
|
# function happens, which causes the mapgen to overwrite whatever Lua does
|
||||||
|
# to them. This setting (in seconds) makes biome_lib wait before adding its
|
||||||
|
# normal output to those map blocks, to give the engine plenty of time to
|
||||||
|
# run that overflow feature first.
|
||||||
|
biome_lib_block_timeout (Deferred block timeout) int 300
|
||||||
|
|
||||||
|
# This does just what it sounds like - it shows all debug output that's sent
|
||||||
|
# with a level equal to or greater than this value. A setting of 0 shows only
|
||||||
|
# the bare necessities, such as the startup and shutdown messages, 1 adds
|
||||||
|
# internal non-fatal errors to what's shown, 2 adds warnings, 3 adds other
|
||||||
|
# basic info, 4 adds all the verbose debugging spew. 3 is perhaps the most
|
||||||
|
# useful setting.
|
||||||
|
biome_lib_debug_log_level (Debug log level) int 0
|
|
@ -768,7 +768,7 @@ minetest.register_craft({
|
||||||
minetest.register_lbm({
|
minetest.register_lbm({
|
||||||
name = ":homedecor:convert_kitchen_cabinets",
|
name = ":homedecor:convert_kitchen_cabinets",
|
||||||
label = "Convert homedecor kitchen cabinets to use [color]wallmounted",
|
label = "Convert homedecor kitchen cabinets to use [color]wallmounted",
|
||||||
run_at_every_load = false,
|
run_at_every_load = true,
|
||||||
nodenames = homedecor.kitchen_convert_nodes,
|
nodenames = homedecor.kitchen_convert_nodes,
|
||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
local name = node.name
|
local name = node.name
|
||||||
|
|
Loading…
Reference in a new issue