refactor
This commit is contained in:
parent
73942b5443
commit
8af52a0d64
62
entities.lua
Normal file
62
entities.lua
Normal file
@ -0,0 +1,62 @@
|
||||
minetest.register_entity("illuna:rulehint", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=3,y=3},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_rulehint.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:travelcenter_ne", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_travelcenter_ne.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:travelcenter_nw", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_travelcenter_nw.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:travelcenter_se", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_travelcenter_se.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:travelcenter_sw", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_travelcenter_sw.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:kingdom_entrance", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_kingdom_entrance.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:market", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_market.png"},
|
||||
})
|
1
init.lua
1
init.lua
@ -1,6 +1,7 @@
|
||||
illuna = {}
|
||||
|
||||
dofile(minetest.get_modpath("illuna").."/nodes.lua")
|
||||
dofile(minetest.get_modpath("illuna").."/entities.lua")
|
||||
dofile(minetest.get_modpath("illuna").."/moreblocks.lua")
|
||||
dofile(minetest.get_modpath("illuna").."/crafting.lua")
|
||||
dofile(minetest.get_modpath("illuna").."/commands.lua")
|
||||
|
63
nodes.lua
63
nodes.lua
@ -403,69 +403,6 @@ if minetest.get_modpath("ethereal") then
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_entity("illuna:rulehint", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=3,y=3},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_rulehint.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:travelcenter_ne", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_travelcenter_ne.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:travelcenter_nw", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_travelcenter_nw.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:travelcenter_se", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_travelcenter_se.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:travelcenter_sw", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_travelcenter_sw.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:kingdom_entrance", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_kingdom_entrance.png"},
|
||||
})
|
||||
|
||||
minetest.register_entity("illuna:market", {
|
||||
visual = "sprite",
|
||||
visual_size = {x=2.5,y=2.5},
|
||||
collisionbox = {0},
|
||||
physical = false,
|
||||
glow = 10,
|
||||
textures = {"illuna_market.png"},
|
||||
})
|
||||
|
||||
function illuna.node_sound_wool(table)
|
||||
table = table or {}
|
||||
table.footstep = table.footstep or
|
||||
|
Loading…
x
Reference in New Issue
Block a user