Modding:Advanced Items/ru: Difference between revisions
From Vintage Story Wiki
(Created page with "public class TunnlerItem : Item {") |
(Created page with "public void DestroyBlocks(IWorldAccessor world, BlockPos min, BlockPos max, IPlayer player) { BlockPos tempPos = new BlockPos(); for (int x = min.X; x <= max.X; x++) { for (int y = min.Y; y <= max.Y; y++) { for (int z = min.Z; z <= max.Z; z++) { tempPos.Set(x, y, z); if (player.WorldData.CurrentGameMode == Enu...") |
||
Line 149: | Line 149: | ||
{ | { | ||
public void DestroyBlocks(IWorldAccessor world, BlockPos min, BlockPos max, IPlayer player) | |||
public void DestroyBlocks(IWorldAccessor world, BlockPos min, BlockPos max, IPlayer player) | |||
{ | { | ||
BlockPos tempPos = new BlockPos(); | BlockPos tempPos = new BlockPos(); | ||
Line 168: | Line 167: | ||
} | } | ||
} | } | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> |