mirror of https://github.com/teverse/teverse
Compare commits
No commits in common. "386fd88740a2d7004eb72458cb23eeadfbc47ae7" and "bbdb677ab7fe481dc323a3027dc5651e140deed1" have entirely different histories.
386fd88740
...
bbdb677ab7
|
@ -13,7 +13,12 @@ workspace.camera:lookAt(vector3(0, 0, 0))
|
||||||
-- Stealing camera from workshop
|
-- Stealing camera from workshop
|
||||||
require("tevgit:workshop/controllers/environment/camera.lua")
|
require("tevgit:workshop/controllers/environment/camera.lua")
|
||||||
|
|
||||||
local function registerBlock(c)
|
engine.construct("block", workspace, {
|
||||||
|
position = vector3(0, 20, 0),
|
||||||
|
static = false
|
||||||
|
})
|
||||||
|
|
||||||
|
workspace:childAdded(function(c)
|
||||||
if c.className == "block" then
|
if c.className == "block" then
|
||||||
c:once("mouseLeftPressed", function ()
|
c:once("mouseLeftPressed", function ()
|
||||||
if c.size == vector3(4, 4, 4) then
|
if c.size == vector3(4, 4, 4) then
|
||||||
|
@ -22,7 +27,4 @@ local function registerBlock(c)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end)
|
||||||
|
|
||||||
workspace:childAdded(registerBlock)
|
|
||||||
for _,v in pairs(workspace.children) do registerBlock(v) end
|
|
|
@ -128,6 +128,4 @@ engine.networking:bind( "mineBlock", function( client, x, y, z )
|
||||||
fillSpace(x, y, z + 1)
|
fillSpace(x, y, z + 1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
print("all loaded")
|
|
Loading…
Reference in New Issue