From e051eae5bca55c549886c2ba1919b107fc3530e2 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 10 Jun 2018 15:22:32 +0200 Subject: [PATCH] Lightning no longer turns villagers to witches Because witches are incomplete. Also add villager TODOs. --- mods/ENTITIES/mobs_mc/villager.lua | 8 ++++++++ mods/ENTITIES/mobs_mc/villager_zombie.lua | 2 +- mods/ENVIRONMENT/lightning/init.lua | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/mods/ENTITIES/mobs_mc/villager.lua b/mods/ENTITIES/mobs_mc/villager.lua index a5c7e0a6d3..fbc7bc5218 100644 --- a/mods/ENTITIES/mobs_mc/villager.lua +++ b/mods/ENTITIES/mobs_mc/villager.lua @@ -10,6 +10,14 @@ -- TODO: Particles -- TODO: 4s Regeneration I after trade unlock +-- TODO: Breeding +-- TODO: Baby villagers +-- TODO: Spawning in villages +-- TODO: Behaviour: +-- TODO: Walk around village, but do not leave it intentionally +-- TODO: Run into house on rain or danger, open doors +-- TODO: Internal inventory, pick up items, trade with other villagers +-- TODO: Farm stuff -- intllib local MP = minetest.get_modpath(minetest.get_current_modname()) diff --git a/mods/ENTITIES/mobs_mc/villager_zombie.lua b/mods/ENTITIES/mobs_mc/villager_zombie.lua index 22e082c7fb..4abb6b6e89 100644 --- a/mods/ENTITIES/mobs_mc/villager_zombie.lua +++ b/mods/ENTITIES/mobs_mc/villager_zombie.lua @@ -7,7 +7,7 @@ local MP = minetest.get_modpath(minetest.get_current_modname()) local S, NS = dofile(MP.."/intllib.lua") ---dofile(minetest.get_modpath("mobs").."/api.lua") +-- TODO: Turn villagers to zombie villager --################### --################### ZOMBIE VILLAGER diff --git a/mods/ENVIRONMENT/lightning/init.lua b/mods/ENVIRONMENT/lightning/init.lua index 0f3061e43c..625934fb14 100644 --- a/mods/ENVIRONMENT/lightning/init.lua +++ b/mods/ENVIRONMENT/lightning/init.lua @@ -191,10 +191,14 @@ lightning.strike = function(pos) obj:set_yaw(rot) -- villager → witch elseif lua.name == "mobs_mc:villager" then + -- Witches are incomplete, this code is unused + -- TODO: Enable this code when witches are working. + --[[ local rot = obj:get_yaw() obj:remove() obj = minetest.add_entity(pos2, "mobs_mc:witch") obj:set_yaw(rot) + ]] -- TODO: creeper → charged creeper elseif lua.name == "mobs_mc:creeper" then