Confirmedusers, Bureaucrats, editor, Administrators
1,522
edits
m (Update Code) |
VeryGoodDog (talk | contribs) m (VeryGoodDog moved page World Access to Modding:World Access) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 74: | Line 74: | ||
<syntaxhighlight lang="c#"> | <syntaxhighlight lang="c#"> | ||
// Check a | // Check a 7x7x7 area for logs | ||
int quantityLogs = 0; | int quantityLogs = 0; | ||
for (int x = -3; x <= 3; x++) | for (int x = -3; x <= 3; x++) | ||
Line 120: | Line 120: | ||
api.World.BlockAccessor.SetBlock(blockId, plrpos.DownCopy()); | api.World.BlockAccessor.SetBlock(blockId, plrpos.DownCopy()); | ||
// Check a | // Check a 7x7x7 area for logs | ||
int quantityLogs = 0; | int quantityLogs = 0; | ||
api.World.BlockAccessor.WalkBlocks( | api.World.BlockAccessor.WalkBlocks( |