]> git.lizzy.rs Git - Crafter.git/commitdiff
Ice and snow now melts when not snowing
authoroilboi <47129783+oilboi@users.noreply.github.com>
Wed, 20 May 2020 19:36:41 +0000 (15:36 -0400)
committeroilboi <47129783+oilboi@users.noreply.github.com>
Wed, 20 May 2020 19:36:41 +0000 (15:36 -0400)
README.md
mods/fishing/init.lua
mods/weather/init.lua

index 6ca6bf1d587e58cf1431ee84f0f6dfa9d1b6be4b..973f47e40c5ab3499e268a40d8b7fe26fd07e5cf 100644 (file)
--- a/README.md
+++ b/README.md
@@ -133,6 +133,7 @@ enable_mod_channels = true
 - Fixed raw porkchops not being edible
 - Fixed xp level number scaling huge
 - Added in cool spider sounds
+- Snow and ice now melts when not snowing
 ---
 
 
@@ -169,6 +170,12 @@ enable_mod_channels = true
 
 > #1 idea, - make mobs pathfind
 
+### snowman
+- only spawns when snowing
+- throws snowballs at the player
+- creates snow wherever it "walks"
+- you can put a pumpkin on it's head to make it survive when it's not snowing out
+- drops snowballs and coal
 
 ### sheep
 - sheep can be punched to drop wool without damage
index 014af90aa8696db513b5338eb27b6e12de2f293d..03619823c2c3fddc23d43880705c2ec489cb8226 100644 (file)
@@ -95,9 +95,8 @@ lure.on_step = function(self, dtime)
                                self.catch_timer = self.catch_timer + dtime
 
                                if self.catch_timer >= 0.5 then
-                                       print("trying")
                                        self.catch_timer = 0
-                                       if math.random() > 0.96 then
+                                       if math.random() > 0.94 then
                                                local obj = minetest.add_item(pos, "fishing:fish")
                                                if obj then
                                                        local distance = vector.distance(pos,pos2)
index 906e960a7d56e9f38edb6e233a55ec7f9207c23c..91020b4efe85094f43ef8de532cee9728480da71 100644 (file)
@@ -325,6 +325,20 @@ minetest.register_node("weather:snow_block", {
                },
 })
 
+minetest.register_abm({
+       label = "snow and ice melt",
+       nodenames = {"weather:snow","main:ice"},
+       neighbors = {"air"},
+       interval = 3,
+       chance = 10,
+       catch_up = true,
+       action = function(pos)
+               if weather_type ~= 1 then
+                       minetest.remove_node(pos)
+               end
+       end,
+})
+
 minetest.register_craftitem("weather:snowball", {
        description = "Snowball",
        inventory_image = "snowball.png",