Add auto configuration for all simple mobs derivatives

This commit is contained in:
stujones11 2015-09-11 19:07:51 +01:00
parent 40d5de6b1f
commit 22b51cea14
2 changed files with 7 additions and 11 deletions

View file

@ -2,4 +2,4 @@ default
dye
tnt
wool
mobs?

View file

@ -28,16 +28,12 @@ SHOOTER_OBJECT_UPDATE_TIME = 0.25
SHOOTER_ROUNDS_UPDATE_TIME = 0.4
SHOOTER_PLAYER_OFFSET = {x=0, y=1, z=0}
SHOOTER_ENTITY_OFFSET = {x=0, y=0, z=0}
SHOOTER_ENTITIES = {
"mobs:dirt_monster",
"mobs:stone_monster",
"mobs:sand_monster",
"mobs:tree_monster",
"mobs:sheep",
"mobs:rat",
"mobs:oerkki",
"mobs:dungeon_master",
}
SHOOTER_ENTITIES = {}
for k, v in pairs(minetest.registered_entities) do
if string.find(k, "^mobs") then
table.insert(SHOOTER_ENTITIES, k)
end
end
local singleplayer = minetest.is_singleplayer()
if singleplayer then