<img src="https://github.com/EliasFleckenstein03/Crafter/blob/master/menu/header.png">
-> Designed for Minetest 5.3.0-DEV
+> Designed for Minetest 5.3.0
>Built using textures from <a href="https://forum.minetest.net/viewtopic.php?t=16407">Mineclone 2</a>
## Alpha 0.07
> RailRoad Tech
+- Seasons
+- Better 3rd persion visuals
- Warning when clientmod is not installed
- Bucket sounds
- Inventory improvements
--- /dev/null
+season
+main
climbable = false,
paramtype = "light",
is_ground_content = false,
- tiles = {"tallgrass.png"},
+ tiles = {season.pick("tallgrass_spring.png", "tallgrass.png", "tallgrass_autumn.png", "tallgrass_winter.png")},
paramtype2 = "degrotate",
buildable_to = true,
sunlight_propagates = true,
-hunger
\ No newline at end of file
+hunger
+season
minetest.register_node("main:grass", {
description = "Grass",
- tiles = {"grass.png"},
+ tiles = season.pick({"grass_spring.png", "grass.png"}, {"grass.png"}, {"leaves_ground.png"}, {"snow.png"}),
groups = {grass = 1, soil=1,pathable = 1, farm_tillable=1},
sounds = main.dirtSound(),
drop="main:dirt",
climbable = true,
paramtype = "light",
is_ground_content = false,
- tiles = {"leaves.png"},
+ tiles = {season.pick("leaves_spring.png", "leaves.png", "leaves_dry.png", "branches.png")},
groups = {leaves = 1, leafdecay = 1,flammable=1},
sounds = main.grassSound(),
drop = {
itemname = stack:is_known() and stack:get_name() or "unknown"
def = minetest.registered_nodes[itemname]
- tooldef = minetest.registered_tools[itemname]
+ local tooldef = minetest.registered_tools[itemname]
self.object:set_properties({
textures = {itemname},
-local dayofyear = os.date("*t").yday
+season = {}
-if dayofyear >= 79 and dayofyear < 172 then
- season = "spring"
-elseif dayofyear < 266 then
- season = "summer"
-elseif dayofyear < 355 then
- season = "autumn"
-else
- season = "winter"
+season.which = minetest.settings:get("season") or "reallife"
+
+if season.which == "reallife" then
+ local dayofyear = os.date("*t").yday
+ if dayofyear >= 79 and dayofyear < 172 then
+ season.which = "spring"
+ elseif dayofyear < 266 then
+ season.which = "summer"
+ elseif dayofyear < 355 then
+ season.which = "autumn"
+ else
+ season.which = "winter"
+ end
+end
+
+function season.pick(spring, summer, autumn, winter)
+ local t = {
+ spring = spring,
+ summer = summer,
+ autumn = autumn,
+ winter = winter
+ }
+ return t[season.which]
end
minetest.register_node("weather:snow", {
description = "Snow",
- tiles = {"snow_block.png"},
+ tiles = {"snow.png"},
groups = {pathable = 1,snow = 1, falling_node=1},
sounds = main.woolSound(),
paramtype = "light",
minetest.register_node("weather:snow_block", {
description = "Snow",
- tiles = {"snow_block.png"},
+ tiles = {"snow.png"},
groups = {pathable = 1,snow = 1},
sounds = main.woolSound(),
drop = {
--- /dev/null
+# The season to be used ingame (only affects audiovisuals). If set to reallife the season will be set to the real life season when the server starts. Set to summer to disable season effects.
+season (Season) enum reallife reallife,spring,summer,autumn,winter
+- Music depending on season
- Equip armor with rightclick
- Shift-click fuel into furnace
- Throwing eggs
- Rebalancing of ore generation probabilities and tool speeds
- More sophisticated particle effects
-- Season effects (only affecting audiovisuals like textures and music)
- Add two new biomes, each with individual trees, exclusive mobs and structures and a boss fight
-- Fix creative inventory to not overstack items
- Add Oil
-- Add Redstone Breaker
- Rework enchanting system