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:
a-bad-dev 2025-12-09 03:17:00 -04:00 committed by GitHub
commit 2259be43a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
306 changed files with 9142 additions and 31 deletions

34
mods/sprint/init.lua Normal file
View file

@ -0,0 +1,34 @@
--[[
Sprint mod for Minetest by GunshipPenguin
To the extent possible under law, the author(s)
have dedicated all copyright and related and neighboring rights
to this software to the public domain worldwide. This software is
distributed without any warranty.
]]
--Configuration variables, these are all explained in README.md
SPRINT_METHOD = 1
SPRINT_SPEED = 1.8
SPRINT_JUMP = 1.1
SPRINT_STAMINA = 20
SPRINT_TIMEOUT = 0.5 --Only used if SPRINT_METHOD = 0
if minetest.get_modpath("hudbars") ~= nil then
hb.register_hudbar("sprint", 0xFFFFFF, "Stamina",
{ bar = "sprint_stamina_bar.png", icon = "sprint_stamina_icon.png" },
SPRINT_STAMINA, SPRINT_STAMINA,
false, "%s: %.1f/%.1f")
SPRINT_HUDBARS_USED = true
else
SPRINT_HUDBARS_USED = false
end
if SPRINT_METHOD == 0 then
dofile(minetest.get_modpath("sprint") .. "/wsprint.lua")
elseif SPRINT_METHOD == 1 then
dofile(minetest.get_modpath("sprint") .. "/esprint.lua")
else
minetest.log("error", "Sprint Mod - SPRINT_METHOD is not set properly, using e to sprint")
dofile(minetest.get_modpath("sprint") .. "/esprint.lua")
end