mirror of
https://github.com/teverse/teverse
synced 2025-08-25 23:54:46 +02:00
Compare commits
2 Commits
bbdb677ab7
...
386fd88740
Author | SHA1 | Date | |
---|---|---|---|
![]() |
386fd88740 | ||
![]() |
74b4b09a49 |
@ -13,12 +13,7 @@ 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")
|
||||||
|
|
||||||
engine.construct("block", workspace, {
|
local function registerBlock(c)
|
||||||
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
|
||||||
@ -27,4 +22,7 @@ workspace:childAdded(function(c)
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end)
|
end
|
||||||
|
|
||||||
|
workspace:childAdded(registerBlock)
|
||||||
|
for _,v in pairs(workspace.children) do registerBlock(v) end
|
@ -129,3 +129,5 @@ engine.networking:bind( "mineBlock", function( client, x, y, z )
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
print("all loaded")
|
Loading…
x
Reference in New Issue
Block a user