mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-09 04:16:30 +00:00
Dehardcode map
* Dehardcode maps (currently not working) maps need work and proper configs * Fix bugs i'm terrible at lua * Add proper maps and configs * Fix some bugs the game at least loads now, though it crashes when you run /start <a map> * Fix more bugs The map starts now though you don't get teleported to it. * Teleport the player to the map spawn on start * Fix lots of bugs It mostly works now * Add butterflies mod * Another bugfix * Add fireflies mod * Add vessels mod (dependency for fireflies) * Add a sprint mod * Add a spawnpoint no more falling into the void * Update TODO.txt * Fix the barriers being offset by 2 Also add more dependency mods
This commit is contained in:
parent
319422974a
commit
2259be43a2
306 changed files with 9142 additions and 31 deletions
54
mods/wool/init.lua
Normal file
54
mods/wool/init.lua
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
-- wool/init.lua
|
||||
|
||||
-- Load support for MT game translation.
|
||||
local S = minetest.get_translator("wool")
|
||||
|
||||
local dyes = dye.dyes
|
||||
|
||||
for i = 1, #dyes do
|
||||
local name, desc = unpack(dyes[i])
|
||||
|
||||
local color_group = "color_" .. name
|
||||
|
||||
minetest.register_node("wool:" .. name, {
|
||||
description = S(desc .. " Wool"),
|
||||
tiles = {"wool_" .. name .. ".png"},
|
||||
is_ground_content = false,
|
||||
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
|
||||
flammable = 3, wool = 1, [color_group] = 1},
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft{
|
||||
type = "shapeless",
|
||||
output = "wool:" .. name,
|
||||
recipe = {"group:dye," .. color_group, "group:wool"},
|
||||
}
|
||||
end
|
||||
|
||||
-- Legacy
|
||||
-- Backwards compatibility with jordach's 16-color wool mod
|
||||
minetest.register_alias("wool:dark_blue", "wool:blue")
|
||||
minetest.register_alias("wool:gold", "wool:yellow")
|
||||
|
||||
-- Dummy calls to S() to allow translation scripts to detect the strings.
|
||||
-- To update this run:
|
||||
-- for _,e in ipairs(dye.dyes) do print(("S(%q)"):format(e[2].." Wool")) end
|
||||
|
||||
--[[
|
||||
S("White Wool")
|
||||
S("Grey Wool")
|
||||
S("Dark Grey Wool")
|
||||
S("Black Wool")
|
||||
S("Violet Wool")
|
||||
S("Blue Wool")
|
||||
S("Cyan Wool")
|
||||
S("Dark Green Wool")
|
||||
S("Green Wool")
|
||||
S("Yellow Wool")
|
||||
S("Brown Wool")
|
||||
S("Orange Wool")
|
||||
S("Red Wool")
|
||||
S("Magenta Wool")
|
||||
S("Pink Wool")
|
||||
--]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue