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/26/2021 at 8:00 PM, 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

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.