diff options
author | Mattes D <github@xoft.cz> | 2016-12-09 12:29:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-09 12:29:04 +0100 |
commit | e8fb85be885f6c32fdeb861b12fb8402de66ebe5 (patch) | |
tree | 2e2ed40816c0b053ace2f01340e2b667e1d1e28f /Server/Plugins/Debuggers/Debuggers.lua | |
parent | Merge pull request #3471 from marvinkopf/fix-3417 (diff) | |
download | cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar.gz cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar.bz2 cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar.lz cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar.xz cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.tar.zst cuberite-e8fb85be885f6c32fdeb861b12fb8402de66ebe5.zip |
Diffstat (limited to 'Server/Plugins/Debuggers/Debuggers.lua')
-rw-r--r-- | Server/Plugins/Debuggers/Debuggers.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Server/Plugins/Debuggers/Debuggers.lua b/Server/Plugins/Debuggers/Debuggers.lua index 4dfc55030..8e2bd0156 100644 --- a/Server/Plugins/Debuggers/Debuggers.lua +++ b/Server/Plugins/Debuggers/Debuggers.lua @@ -987,6 +987,24 @@ end; +function HandleGenRailsCmd(a_Split, a_Player) + local MAX_RAIL_META = 9 + local pos = a_Player:GetPosition() + local ba = cBlockArea:new() + ba:Create(2 * MAX_RAIL_META + 3, 4, 3, cBlockArea.baTypes + cBlockArea.baMetas) + ba:FillRelCuboid(0, 2 * MAX_RAIL_META + 2, 0, 0, 0, 2, cBlockArea.baTypes, E_BLOCK_STONE) + ba:FillRelCuboid(0, 2 * MAX_RAIL_META + 2, 1, 3, 0, 2, cBlockArea.baTypes, E_BLOCK_AIR) + for x = 0, MAX_RAIL_META do + ba:SetRelBlockTypeMeta(2 * x + 1, 1, 1, E_BLOCK_RAIL, x) + end + ba:Write(a_Player:GetWorld(), pos:Floor()) + return true +end + + + + + function HandleGetCustomNameCmd(a_Split, a_Player) local item = a_Player:GetInventory():GetEquippedItem() if (not(item.m_CustomName) or (item.m_CustomName == "")) then |