Jump to content

Recommended Posts

Posted

BlockItem#tryPlace to place a block item like a player would, note that you'll need a BlockItemUseContext

World#setBlockState to place any block, anywhere, which may be simpler. and you can get the block from the block item

Posted

 

  On 3/27/2021 at 2:00 AM, kiou.23 said:

BlockItem#tryPlace to place a block item like a player would, note that you'll need a BlockItemUseContext

World#setBlockState to place any block, anywhere, which may be simpler. and you can get the block from the block item

Expand  

do you know when this was added, working on a bit older version of forge.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.