diff --git a/README.md b/README.md index c02e92d..f08a268 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ There are also these additional setting options: - [x] **Racoons** are cute little beasts. They will take whatever you give them, but only appreciate things that are *eatable*. - [x] **Rats** are cute little critters that you can pick up. They are tasty when cooked. - [x] **Sheep** produce wool--when well fed--that can be harvested. They are tasty when killed and cooked. They like wheat. - - [ ] **Swans** + - [x] **Swans** are birds that float around on water. ### Monsters ### - [x] Dirt Monster @@ -88,6 +88,7 @@ You can purposefully overcook meat and use the result to make dye. Rotten meat c - [X] Donkeys with burdens become chests on death. - [ ] Disabled donkeys become chests. - [ ] Extinction if overkilled. + - [ ] Flying - [ ] Fresh meat: "fresh meat" --> "raw meat" --> "cooked meat" | ("rotten meat" --> "") - [ ] Grazing and unprotected garden damage. - [ ] Knockback diff --git a/animals/swan.lua b/animals/swan.lua index 9cd3b45..927467a 100644 --- a/animals/swan.lua +++ b/animals/swan.lua @@ -1,4 +1,4 @@ -local swan_setting = minetest.settings:get("mobs.swans") or "disabled" +local swan_setting = minetest.settings:get("mobs.swans") or "mesh" -- swan: 1-80 doing nothing ..(not finished) @@ -10,6 +10,13 @@ mobs:register_mob("swan", { armor = {crumbly = 50, cracky = 50, choppy = 100, fleshy = 100}, walk_velocity = 1, + spawning_nodes = {"default:water_source"}, + max_spawn_light = 20, + min_spawn_light = -1, + spawn_chance = 8000, + max_spawn_count = 1, + max_spawn_height = 31000, + damage = {fall = 0, water = 0, lava = 1, light = 0}, visual = "mesh", diff --git a/settingtypes.txt b/settingtypes.txt index 73148dd..eaa53f2 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -65,7 +65,7 @@ mobs.rats (Rats) enum mesh mesh,sprite,disabled mobs.sheep (Sheep) enum mesh mesh,sprite,disabled # Swans can be drawn with a 3D mesh or be disabled. -mobs.swans (Swans) enum disabled mesh,disabled +mobs.swans (Swans) enum mesh mesh,disabled [monsters]