681
edits
Akellagray (talk | contribs) (Created page with "# Рассчитать новую позицию блока в зависимости от стороны, в которую смотрит игрок # Проверить, м...") |
Akellagray (talk | contribs) (Created page with "<syntaxhighlight lang="c#"> public override bool OnPlayerInteract(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel, ref EnumHandling handling) {...") |
||
Line 42: | Line 42: | ||
public override bool OnPlayerInteract(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel, ref EnumHandling handling) | public override bool OnPlayerInteract(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel, ref EnumHandling handling) | ||
{ | { | ||
// | // Находим целевую позицию | ||
BlockPos pos = blockSel.Position.AddCopy(blockSel.Face.GetOpposite()); | BlockPos pos = blockSel.Position.AddCopy(blockSel.Face.GetOpposite()); | ||
edits