forked from VoxeLibre/VoxeLibre
Lightning no longer turns villagers to witches
Because witches are incomplete. Also add villager TODOs.
This commit is contained in:
parent
a804144ed4
commit
e051eae5bc
|
@ -10,6 +10,14 @@
|
||||||
|
|
||||||
-- TODO: Particles
|
-- TODO: Particles
|
||||||
-- TODO: 4s Regeneration I after trade unlock
|
-- 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
|
-- intllib
|
||||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
local MP = minetest.get_modpath(minetest.get_current_modname())
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
||||||
local S, NS = dofile(MP.."/intllib.lua")
|
local S, NS = dofile(MP.."/intllib.lua")
|
||||||
|
|
||||||
--dofile(minetest.get_modpath("mobs").."/api.lua")
|
-- TODO: Turn villagers to zombie villager
|
||||||
|
|
||||||
--###################
|
--###################
|
||||||
--################### ZOMBIE VILLAGER
|
--################### ZOMBIE VILLAGER
|
||||||
|
|
|
@ -191,10 +191,14 @@ lightning.strike = function(pos)
|
||||||
obj:set_yaw(rot)
|
obj:set_yaw(rot)
|
||||||
-- villager → witch
|
-- villager → witch
|
||||||
elseif lua.name == "mobs_mc:villager" then
|
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()
|
local rot = obj:get_yaw()
|
||||||
obj:remove()
|
obj:remove()
|
||||||
obj = minetest.add_entity(pos2, "mobs_mc:witch")
|
obj = minetest.add_entity(pos2, "mobs_mc:witch")
|
||||||
obj:set_yaw(rot)
|
obj:set_yaw(rot)
|
||||||
|
]]
|
||||||
-- TODO: creeper → charged creeper
|
-- TODO: creeper → charged creeper
|
||||||
elseif lua.name == "mobs_mc:creeper" then
|
elseif lua.name == "mobs_mc:creeper" then
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue