Translations:Modding:Adding Block Behavior/13/en

From Vintage Story Wiki
Revision as of 12:27, 14 May 2020 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<syntaxhighlight lang="c#">

   public override bool OnPlayerInteract(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel, ref EnumHandling handling)
   {
       // Find the target position
       BlockPos pos = blockSel.Position.AddCopy(blockSel.Face.GetOpposite());