Confirmedusers
9,523
edits
(Created page with "Lo siguiente que tenemos que cambiar es el propio método interact, para que se encargue de las propiedades de distancia y accionar... <syntaxhighlight lang="c#"> public override bool OnPlayerInteract(IWorldAccessor world, IPlayer byPlayer, BlockSelection blockSel, ref EnumHandling handling) { BlockPos pos = blockSel.Position.AddCopy(pull && byPlayer.WorldData.EntityControls.Sneak ? blockSel.Face : blockSel.Face.GetOpposite(), distance);...") |
(Created page with "== Añadir otro bloque ==") |
||
Line 158: | Line 158: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | == Añadir otro bloque == | ||
Let's create another block using this behavior, but this time we will configure some additional properties ... | Let's create another block using this behavior, but this time we will configure some additional properties ... |