Add auto configuration for all simple mobs derivatives
This commit is contained in:
parent
40d5de6b1f
commit
22b51cea14
2 changed files with 7 additions and 11 deletions
|
@ -2,4 +2,4 @@ default
|
||||||
dye
|
dye
|
||||||
tnt
|
tnt
|
||||||
wool
|
wool
|
||||||
|
mobs?
|
||||||
|
|
16
shooter.lua
16
shooter.lua
|
@ -28,16 +28,12 @@ SHOOTER_OBJECT_UPDATE_TIME = 0.25
|
||||||
SHOOTER_ROUNDS_UPDATE_TIME = 0.4
|
SHOOTER_ROUNDS_UPDATE_TIME = 0.4
|
||||||
SHOOTER_PLAYER_OFFSET = {x=0, y=1, z=0}
|
SHOOTER_PLAYER_OFFSET = {x=0, y=1, z=0}
|
||||||
SHOOTER_ENTITY_OFFSET = {x=0, y=0, z=0}
|
SHOOTER_ENTITY_OFFSET = {x=0, y=0, z=0}
|
||||||
SHOOTER_ENTITIES = {
|
SHOOTER_ENTITIES = {}
|
||||||
"mobs:dirt_monster",
|
for k, v in pairs(minetest.registered_entities) do
|
||||||
"mobs:stone_monster",
|
if string.find(k, "^mobs") then
|
||||||
"mobs:sand_monster",
|
table.insert(SHOOTER_ENTITIES, k)
|
||||||
"mobs:tree_monster",
|
end
|
||||||
"mobs:sheep",
|
end
|
||||||
"mobs:rat",
|
|
||||||
"mobs:oerkki",
|
|
||||||
"mobs:dungeon_master",
|
|
||||||
}
|
|
||||||
|
|
||||||
local singleplayer = minetest.is_singleplayer()
|
local singleplayer = minetest.is_singleplayer()
|
||||||
if singleplayer then
|
if singleplayer then
|
||||||
|
|
Loading…
Reference in a new issue