I made a use override on the Block class
public TypedActionResult<ItemStack> use(World world, PlayerEntity playerEntity, Hand hand) {
// code in here
}
is there a way to use the playerEntity variable to get the player's respawn coorindates?
I made a use override on the Block class
public TypedActionResult<ItemStack> use(World world, PlayerEntity playerEntity, Hand hand) {
// code in here
}
is there a way to use the playerEntity variable to get the player's respawn coorindates?