summaryrefslogtreecommitdiffstats
path: root/cwd
diff options
context:
space:
mode:
Diffstat (limited to 'cwd')
-rw-r--r--cwd/assets/altcraft/scripts/init.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/cwd/assets/altcraft/scripts/init.lua b/cwd/assets/altcraft/scripts/init.lua
index 2137464..de58b90 100644
--- a/cwd/assets/altcraft/scripts/init.lua
+++ b/cwd/assets/altcraft/scripts/init.lua
@@ -20,9 +20,15 @@ function plugin.onUnload ()
end
function plugin.onTick (deltaTime)
- if AC.GetGameState() and AC.GetGameState():GetPlayer() then
- local player = AC.GetGameState():GetPlayer()
- player.pos.x = player.pos.x + deltaTime * 0.5
+ if AC.GetGameState() and AC.GetGameState():GetPlayer() and AC.GetGameState():GetTimeStatus().worldAge > 0 then
+ -- local player = AC.GetGameState():GetPlayer()
+ -- player.pos.x = player.pos.x + deltaTime * 0.5
+
+ -- local playerPos = AC.GetGameState():GetPlayer().pos
+ -- local wrld = AC.GetGameState():GetWorld()
+ -- playerPosV = Vector.new(playerPos.x, playerPos.y - 1, playerPos.z)
+ -- bid = wrld:GetBlockId(playerPosV)
+ -- print(bid.id..":"..bid.state)
end
end