Skip to content

Instantly share code, notes, and snippets.

Jordan Snelling Jordach

Block or report user

Report or block Jordach

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View example.lua
player:set_sky({
base_color = minetest.rgba(
result_fog.r,
result_fog.g,
result_fog.b),
type = "skybox",
textures = {
sky_tex_top,
sky_tex_bottom,
sky_tex_side,
@Jordach
Jordach / example.lua
Last active Dec 6, 2018
Skybox PR V2
View example.lua
player:set_skybox({
type = "texture", -- "dynamic", "plain", "texture", "texture_dome"
textures = {"top.png", "bottom.png", "side.png", "side.png", "side.png", "side.png"},
base_color = "#rrggbb",
dynamic_color = { --applies to type = "dyanmic"
day_sky = "#rrggbb",
day_horizon = "#rrggbb",
dawn_sky = "#rrggbb",
dawn_horizon = "#rrggbb",
night_sky = "#rrggbb",
View gist:d9a2ff7a3fda3f3288254d915f0ccc99
Demo Beats, Experimental Minetracker
Jordach
135
return {{["sample"] = "kick", ["vol"] = 0.25, ["fade"] = 0.0, ["pitch"] = 1.0}}
return {["gap"] = 0}
return {{["sample"] = "hat", ["vol"] = 75.0, ["fade"] = 0.0, ["pitch"] = 1.0}}
return {{["sample"] = "snare", ["vol"] = 10.0, ["fade"] = 0.0, ["pitch"] = 1.0}}
return {{["sample"] = "kick", ["vol"] = 0.25, ["fade"] = 0.0, ["pitch"] = 1.0}}
return {["gap"] = 0}
return {{["sample"] = "hat2", ["vol"] = 75.0, ["fade"] = 0.0, ["pitch"] = 1.0}}
View gist:db46b8322f84cdb983da33bc351d293a
[ 95%] Building CXX object src/CMakeFiles/minetest.dir/sound_openal.cpp.o
[ 96%] Building CXX object src/CMakeFiles/minetest.dir/staticobject.cpp.o
[ 96%] Building CXX object src/CMakeFiles/minetest.dir/subgame.cpp.o
[ 97%] Building CXX object src/CMakeFiles/minetest.dir/terminal_chat_console.cpp.o
[ 97%] Building CXX object src/CMakeFiles/minetest.dir/tileanimation.cpp.o
[ 97%] Building CXX object src/CMakeFiles/minetest.dir/tool.cpp.o
[ 98%] Building CXX object src/CMakeFiles/minetest.dir/translation.cpp.o
[ 98%] Building CXX object src/CMakeFiles/minetest.dir/version.cpp.o
[ 99%] Building CXX object src/CMakeFiles/minetest.dir/voxel.cpp.o
[ 99%] Building CXX object src/CMakeFiles/minetest.dir/voxelalgorithms.cpp.o
View gist:26b652a702c221cd645d47dab96ea48c
CMakeFiles/minetest.dir/convert_json.cpp.o: In function `fetchJsonValue(std::string const&, std::vector<std::string, std::allocator<std::string> >*)':
convert_json.cpp:(.text+0x899): undefined reference to `Json::Value::Value(Json::Value&&)'
CMakeFiles/minetest.dir/serverlist.cpp.o: In function `ServerList::deleteEntry(Json::Value const&)':
serverlist.cpp:(.text+0x2397): undefined reference to `Json::Value::Value(Json::Value&&)'
serverlist.cpp:(.text+0x23dd): undefined reference to `Json::Value::Value(Json::Value&&)'
serverlist.cpp:(.text+0x2409): undefined reference to `Json::Value::Value(Json::Value&&)'
serverlist.cpp:(.text+0x2435): undefined reference to `Json::Value::Value(Json::Value&&)'
CMakeFiles/minetest.dir/serverlist.cpp.o:serverlist.cpp:(.text+0x246d): more undefined references to `Json::Value::Value(Json::Value&&)' follow
CMakeFiles/minetest.dir/serverlist.cpp.o: In function `ServerList::sendAnnounce(ServerList::AnnounceAction, unsigned short, std::vector<std::string, std::allocator<std::string>
View gist:1b28f21f7113223c14bf30036f40a464
Linking CXX executable ../bin/minetest
CMakeFiles/minetest.dir/convert_json.cpp.o: In function `fetchJsonValue(std::string const&, std::vector<std::string, std::allocator<std::string> >*)':
convert_json.cpp:(.text+0x68e): undefined reference to `Json::Value::Value(Json::Value&&)'
CMakeFiles/minetest.dir/serverlist.cpp.o: In function `ServerList::deleteEntry(Json::Value const&)':
serverlist.cpp:(.text+0x2437): undefined reference to `Json::Value::Value(Json::Value&&)'
serverlist.cpp:(.text+0x247d): undefined reference to `Json::Value::Value(Json::Value&&)'
serverlist.cpp:(.text+0x24a9): undefined reference to `Json::Value::Value(Json::Value&&)'
serverlist.cpp:(.text+0x24d5): undefined reference to `Json::Value::Value(Json::Value&&)'
CMakeFiles/minetest.dir/serverlist.cpp.o:serverlist.cpp:(.text+0x250d): more undefined references to `Json::Value::Value(Json::Value&&)' follow
collect2: error: ld returned 1 exit status
View gist:b94e3b43f88a8a8d74749b85185ec81a
Loaded texture: C:/Users/jorda/Desktop/minetest-0.4.15/textures/base/pack/menu_header.png
Loaded texture: C:/Users/jorda/Desktop/minetest-0.4.15/games/Solar_Plains/menu/header.png
Loaded texture: C:/Users/jorda/Desktop/minetest-0.4.15/games/Solar_Plains/menu/icon.png
Loaded texture: C:/Users/jorda/Desktop/minetest-0.4.15/games/minetest_game/menu/icon.png
Loaded texture: C:/Users/jorda/Desktop/minetest-0.4.15/games/minimal/menu/icon.png
Loaded texture: C:/Users/jorda/Desktop/minetest-0.4.15/textures/base/pack/menu_header.png
Loaded texture: C:/Users/jorda/Desktop/minetest-0.4.15/games/Solar_Plains/menu/header.png
Loaded texture: C:/Users/jorda/Desktop/minetest-0.4.15/textures/base/pack/menu_header.png
Loaded texture: C:/Users/jorda/Desktop/minetest-0.4.15/games/Solar_Plains/menu/header.png
2017-06-08 17:01:12: WARNING[Main]: BanManager: creating C:\Users\jorda\Desktop\minetest-0.4.15\bin\..\worlds\testgfse\ipban.txt
View gist:f66af33cc01f60da2e9fa790f7d85f22
Alternative to Technic and Pipeworks:
Power can only be generated from renewable sources, such as water, lava[?], wind and solar[?].
All connected machines will consume active power at all time, whether the machines are depowered or not.
Each passive producer provides 1 EP indefinitely or add an active producer that uses fuel but for more EP,
perhaps make cabling slowly disintergrate or passive machines need repairs over time?
Tiered power is not nessessary at all.
@Jordach
Jordach / .lua
Last active Apr 13, 2017
less strange slabs and stairs.
View .lua
-- stairs, Jordach / Solar Plains redo
-- mods depend on us (to provide them with their own stairs, damn socialists!), so lets make a namespace
stairs = {}
function stairs.register_stair(subname, groups_table, images, desc, sound_table)
groups_table.stair = 1
View gist:5f2d7dd91fad1689590bcd1c10a507c4
--[[
Notes:
Times returned from "minetest.get_timeofday()"
Numbers have been trimmed to 2 significant figures.
0 is 12:00 AM
0.23 is 5:30 AM
You can’t perform that action at this time.